xtabond2 - extra year dummy being omitted
Estimating using xtabond2, the results showed that a year-dummy for a year mid-way in the time series got omitted. I cant find the reason why. Can someone help? The syntax used is xi: xtabond2 Y L1.Y...
View ArticleMinimum observations to run 2 stage REpanel data model with i.year and i.sector
Dear Statalist, I am new to STATA and panel data and really need help. I have an unbalanced panel dataset with 229 observations (43 firms over 7 years). I have 1 endogenous (2 instruments) and 18...
View Article"survival entry-time is not allowed"
Hi, I'm trying to estimate treatment effects in a dataset of unique individuals (approximately 3400 observations and 150 variables). I have a date under which they entered the risk pool, a date for...
View ArticleMarginsplot command sub-option showing error
Dear all, Below my codes for margins plot which is throwing up error message. The 'marginsplot' works fine when I am using the 'by' option alone. Whenever any sub-option with 'by' is added, the error...
View ArticleKeeping last two digits of integer values in large dataset
Dear Stata users, I want to identify treatment group (here, these are sub-districts) of 2010 to match with the other two years (2005 and 2000). The sub-district coding system has been changed in 2010....
View ArticleAntecedent and consequence model
Hello, my model includes both antecedent and consequence variables. In details, 1) antecedents: 1) parent capability variables and 2) subsidiary capability variables 2) subsidiary activity development...
View ArticleStata; tell me a joke!
Hey guys. So this is basically more of a fun thing than anything really super useful, but I'm teaching myself how to write programs for STATA and I have an idea. I want to make stata to be able to tell...
View ArticleHow to import a .txt file into Stata that has the first columns delimited by...
Hi guys, I'm trying to import a .txt file into Stata. Please see how the .txt file look in the attachment. My main struggle is that this file has the first columns delimited with ";" and the last...
View Articlepredict value with random term with multiple imputed data
Hi, I imputed variables with missing values in my model of interest by using Realcom and loaded the imputed data on to Stata. Then I use command "mi est, cmdok sav(*. replace): runmlwin" to estimate...
View ArticleDifference in difference help please!!
Hello So basically i am trying to find out how to do difference in difference for: i have 22 countries 7 inflation targeters and 13 non targetters what i want to find out is if inflation targeting made...
View ArticleClustered SE with Unbalanced Clusters
I have been searching for literature related to the proper way to handle standard errors with a relatively small number of clusters (about 50/60) and a very unequal number of observations within...
View ArticleCoefficient interpretation
Hello, I am new in stata and also in econometrics so I would like to say sorry in advance for my stupid questions. I was trying to read a paper and I saw that the per-capita income coefficient is 2.016...
View Article'No observations' error message
Hello, I saved data from SPSS as a Stata file and it worked fine. I just added a few variables to my SPSS file and saved it again as a Stata file. Only this time I get the error message r2000 'no...
View Articlerolling garch
Hi all! I am trying to do a rolling window of 100 previous days to the target day and want to keep for each day the conditional variance from egarch but it doesn't work.could anyone help? Thanks in...
View ArticleBest way to sample control group with survey set
I'm using ACS data and my treatment group is >1% of the survey. My control group is taking up way too much ram. What's the best way for me to sample the control group and so I don't use too much ram...
View Articlehow to construct the event analysis data
Dear statalist My data structure is like this, I have the id, year and event(to indicate whether event happens, 1 vs 0) variables.But within one year, say 2000, some events such hiring one employees...
View Articlesum
Hi, I have 240 month-two variable dataset. I want to make deciles of 1st variable, and extract 'sum' for 2nd variable. I use 'forvalues i = 1/240 { by A`i'_decile, sort: sum r`i'} which produce many...
View ArticleStata Journal Editors' Prize 2016: call for nominations
Just in case you somehow you missed the call for nominations, please see the full announcement calling for nominations at http://www.stata-journal.com/sjpdf.h...iclenum=gn0067 Nominations should be...
View ArticleCorrect regression model
Dear Stata Users, I want to construct a multivariate regression model with a continuous dependent variable. My independent variables are both continuous and categorical. Is simple linear regression an...
View Article