Imputation conditional on an imputed variable
I have a data set that I am trying to perform multiple imputation with chained equations on, using -mi impute chained-. The data comes from a questionnaire that includes something called the "CAGE."...
View ArticleDifference-in-Difference (DID) Analysis and more independent varibales
Hello everyone, I've seen that many papers always show that the basic model for DID is Y=a + B1(POST) + B2(Treated) + B3(POST*Treated) + e, however, is it possible that I add more independent variables...
View ArticleImplausibly large z-scores with melogit (but not xtlogit or meqrlogit)
Colleagues, I'm estimating multilevel logistic regression models with ~30k individuals nested in 25 level-2 countries. These are random intercept models with all individual-level variables treated as...
View ArticleUsing Gdp in Panel Data
Hello, I just really wanna know if using Natural log of Gdp is good for analysis or not. I read it in few places that its normal to use natural log of gdp when the value is big. I tried using the...
View ArticlePanel unit root - interpreting the statistical significance
Hi everyone, To cut to the chase, I have performed 'xtunitroot ips test' (Im et al 2003, unit root test) on my panel data. More specifically the code I entered: xtunitroot ips naturalloggdp, lags (1)...
View ArticleNew package matrixtools at the ssc
Thanks to Kit Baum a new package matrixtools is present at ssc. At present there are two tools to build, present and style Stata matrices:-matprint- presents Stata matrices in the log. It has a simple...
View ArticleEstimating latent variable model with bunching at zero
Hi all, I conjecture that my data {xi}i=1..n are drawn from the following DGP x = x* if x* >= 0 x = min(x* + d, 0) if x* < 0, where d>0 is a parameter and x* ~ N(mu,sigma), i.e. x* is a normal...
View ArticleDrop all observations with negative values
Hi, I have been trying to delete all negative values from my dataset (instead of doing it by variable) using the below 2 approaches, but am ending up with 0 observations in each case. APPROACH1 foreach...
View Articlelooping over data files to generate percentage changes
I need to loop over 10 different data files (dataset 1-10) and generate percentage changes based on a categorization generated in dataset 1. More specifically, I need to divide a list of around 1000...
View ArticleDifference in Differences
Dear Statalist, I have one concern with respect to the data preparing/calculation for a matched difference-in-difference setting. The sample of data is shown as below: pair_id treat time frim_id...
View Articleestab : how to show parameters in decreasing order of magnitude?
Dear Statalist, I am estimating a regression with many (but not too many) fixed effects, and I am interested in showing in a table their estimated parameters in decreasing order of magnitude. The idea...
View ArticleComparing non-nested models: Vuong (1989) and Santos Silva, Tenreyro, and...
Hello, I wanted to ask the question in the other thread ([1]) but it does not seem to attract attention. I also think it could be of interest for a new topic. Please let me know if it is not...
View ArticleTesting mediation between 10 independent variables and 1 DV, with...
Dear all, I have a dataset and my model assumes that one variable mediates between 10 independent variables and 1 dependent variable. All 12 are observed. Furthermore, data was collected in two...
View ArticleMultiple imputation on unbalanced panel data
Hi all, I am currently trying to estimate the impact of climate on the income of fisher folks with a(n) (unbalanced) panel data. the climate variables to be used are rain value and soil moisture....
View ArticleExpected and Unexpected Results using out of sample predictions
I am trying to replicate a study. The study calls for a simultaneous expectation model from a smaller sample that has all the variables needed for computation. The coefficients from this are then used...
View ArticlePanel data - repeated time values within panel
Hi All, I have a dataset that has the following format Company Dependent var Independent vars Company ID Date Rating agency 1 dummy Rating agency 2 dummy A Values Values 1 01/01/2015 0 1 A Values...
View ArticleSyntax error forvalues and two if statements
Hi all, I'm not too experienced with coding or with STATA. For an experiment I'm currently generating new variables, let's say 'diffcont1995' for which I want to know what the difference is in variable...
View Articleclass member function not found ( bar charts)
Hi all , While I am using STATA 11.2 in panel data analysis and everything is going well . Suddenly , when I run the command to draw a graph(bar chart) for GDP variable (Y) as : graph bar (mean) Y the...
View ArticleTobit model with endogenous and interacted regressor
Hi, I am running a Tobit model where I instrument for an endogenous regressor with an exogenous variable and also an exogenous variable interacted with another exogenous factor regressor. I try to use...
View Article