Quantcast
Channel: Statalist
Browsing all 72773 articles
Browse latest View live
↧

stepchart graph with time series values by year

Hi stata users, I have some time series values and I want a graph with steps like that in the link: http://peltiertech.com/line-chart-without-risers/ Do you know if there is a graph function? Regards

View Article


Create the ROC curve for the binomial logit model

Dear Statalist, I’m trying to plot the "Receiver Operating Characteristics curve" and get the area under the curve for my binomial logit model. The AUC has been estimated using the Stata command...

View Article


zip or xtpoisson?

So I have a dilemma: a zip model with clustered standard errors (which takes into account my zeros), or use xtpoisson (which does my multiple levels correctly, but can't take into account the extra...

View Article

Failure of CODE delimiters

Several times, I 've seen text apparently posted between CODE delimiters that does not display as code. For an example, see: post #5 here

View Article

The difference between oblimin and promax rotation in EFA

Hi dear, I have a problem in recognizing of using oblimin or promax rotation in factor analysis with IBM statistics SPSS 20, and my samples are 50 person. thank you for replying

View Article


testing

Code: clear input str9 date float rate 1960 1960 1961 1.3 1961 1.3 1962 1.3 1962 1.3 1963 1.3 1963 1.3 1964 1.3 1964 1.3 1965 1.3 1965 1.3 1966 3.1 1966 3.1 1967 3.1 1967 3.1 1968 3.1 1968 3.1 1969...

View Article

Margins generating different results depending on the order of variables...

Hi all. I am trying to estimate marginal effects of a continuous variable (x1) after running an xtlogit model with three-way interactions among (x1, x2 and x3). x2 is binary and x3 runs from 1 to 8 and...

View Article

Export summary statistics to excel or word

Hi there, I can't seem to find a command to export summary statistics from stata to word. Is there a way? I know about "outreg2" for regression but not sure for summary statistics. Thanks! Best...

View Article


mcd/smultiv/bacon suitable for univariate data ?

Hi all! I want to detect and flag outliers for a single variable using proximity/distance-based approaches. I came across mcd, smultiv and bacon which are meant for multivariate data, but work for...

View Article


move a column up

how i can do this title 1 2 3 4 5 6 title 2 3 4 5 6 .

View Article

How to remove growth rate for observations when they do not exist

I have data that is a longer version of thethe following: Code: * Example generated by -dataex-. To install: ssc install dataex clear input str1(Lender Borrower) float(Year Amount) "A" "B" 1979 1000...

View Article

Is there a way to use a varlist local macro as the row or column names of a...

I am looking to take all of the variable names of the variables in my data that start with p, and use those as some of the column names in my matrix. So far, I have: Code: ds p* local plist=r(varlist)...

View Article

Create economic indicator merging variables

Dear Stata community, I would like to generate an indicator for real estate price. The data I use to explain are migration, mortgage prices and consumer mood index. What I've done so far are xcorr and...

View Article


Cleaning strings

Hi Statalist, I have a messy string variable that's 3-16 numbers (yes, I could destring it). The variable is 4-14 characters long, begins with either 07 or 08 (ignore the one beginning with 01) and...

View Article

creating an indicator for matching observations

Hello, My data includes an ID variable for an individual, and a variable for the ID of the person's siblings: sibling2, ..., sibling5 within the household. I also have a variable bullied = 0 if the...

View Article


State Space Model - Kalman Filter

I am currently working on market beta instability and my analysis is currently based on Kalman Filter, however I am having some difficulties into modelling time-variant coefficients in the observation...

View Article

ivreg2 robustness check for xtabond2

Dear Stata users, I am investigating the impact of regulations on financial stability by using xtabond2. The data is unbalanced panel of 10 countries with more than 200 banks. Following is the code:...

View Article


move a column down and delete last obs in column

i have this table date var1 var2 1 02jan2014 10 3 2 02feb2014 20 6 3 02mar2014 30 9 4 02apr2014 40 12 5 02may2014 50 15 6 02jun2014 60 18 7 02jul2014 70 21 8 02aug2014 80 24 9 02sep2014 90 27 Code:...

View Article

Testing nonlinearity in a MLM with xtmixed

I have been searching high and low for a straightforward answer to this question: I am using xtmixed to run a three-level regression. I suspect my data might be non-linear. How can I test whether there...

View Article

Export Mata string matrix to Stata and Excel

Hello I'm working with string and numeric vectors in mata, and I need to export them to Excel. For numeric vectors, I use the matrix conversion to Stata and then the putexcel command, but for the...

View Article
Browsing all 72773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>