Hi,
I have a question about using Clarify module to calculate and output
regression estiamtes and dsecriptive statistics (mean, min, max) for some
independent variables from 5 imputed data files created by Amelia.
Here is my code:
use tm1,clear
estsimp reg bmi black white hisp asian oth age wmom ses [pw=wt1], mi(tm1
tm2 tm3 tm4 tm5)
outreg using r1, 10pct se nocons replace
setx mean [aw=f1qwt] if male==1
setx min [aw=f1qwt] if male==1
setx min [aw=f1qwt] if male==1
I was able to run those codes successfully (which means without error
messages). But I could only output the estimates from regression by using
-outreg- after -estsimp-. How could I access to the output values from using
-setx-? Is there a way for me to output those descriptive statistics values?
Best,
Vivien
I am working with survey data that would benefit greatly from multiple imputations. I have used the Amelia software to generate 5 imputed datasets. However, I am having difficulty availing myself of the benefits of the Clarify program. I would be very grateful if you could answer some questions about the process and diagnose an error message that I am receiving.
Question #1. I began by uploading my original dataset into STATA. I was able to run my logit models, but the listwise deletion was a problem. I then tried to see how things looked with the multiple imputations. Can I start with my original dataset with the missing values, or must I begin with one of the imputed datasets? Although I could run a logit model with my original dataset, I was unable to run one using one of the imputed datasets.
Question #2. After uploading the five imputed datasets into STATA memory, I typed the following into the command line:
estsimp logit influ gender age edu ideology deepsouth mayrad distelec ncounc blkperc quality distblk distmon, mi (B:/amelia1.dta B:/amelia2.dta B:/amelia3.dta B:/amelia4.dta B:/amelia5.dta)
STATA responded as follows:
Estimation number : 1 of 5
Dataset being used: B:/amelia1.dta
(Written by R. )
r(2000);
This error message is explained by STATA in the following way:
Return code 2000
no observations;
You have requested some statistical calculation and there are
no observations on which to perform it. Perhaps you specified
if exp or in range and inadvertently filtered all the data.
Thanks in advance for helping me address these issues. I am very grateful for your time and your assistance. I can be reached at g-neddenriep(a)neiu.edu <mailto:g-neddenriep@neiu.edu> .
GN
Gregory Neddenriep, J.D., Ph.D.
Assistant Professor of Political Science
Northeastern Illinois University
How do you use a regression equation generated from one independent set of data to create predicted probabilities for another independent set of data with the same variables? Essentially I would like to "save" the regression equation from my first dataset to predict for another dataset from a different year. Is this possible? Please excuse me if this information is on the website but I have been having difficulty while attempting to execute this particular task.
Thank you for your help
Raifu Durodoye Jr.