Hello All,
I am using the multiple imputated variables incimp1 through incimp5 for my logit regression. I am wondering if anyone is familiar with doing this in Stata and could provide feedback on my code.
It successfully generated a logit regression output, but I wanted to check and make sure that this is an appropriate use of these commands since is my first time using them. The Stata documentation is mainly geared toward data you impute yourself, not ones where imputation is already provided.
Some of the variables used in the logit regression are cleaned and named differently than the IPUMS website, so I am hoping you can tell by looking at the code:
I had previously posted on IPUMS forum, and they directed me to Statalist: https://forum.ipums.org/t/stata-logi...=lilian_brusic
I am using the multiple imputated variables incimp1 through incimp5 for my logit regression. I am wondering if anyone is familiar with doing this in Stata and could provide feedback on my code.
It successfully generated a logit regression output, but I wanted to check and make sure that this is an appropriate use of these commands since is my first time using them. The Stata documentation is mainly geared toward data you impute yourself, not ones where imputation is already provided.
Some of the variables used in the logit regression are cleaned and named differently than the IPUMS website, so I am hoping you can tell by looking at the code:
Code:
/* The variables incimp1-5 are imputated based on incfam97on2. I renamed incfam97on2 incimp so it matches the imputated variables and removed missing data */ gen incimp=incfam97on2 replace incimp=. if incfam97on2>95 * Tell Stata which variables are imputated and which variable they were imputated from mi import wide, imputed(incimp=incimp1 incimp2 incimp3 incimp4 incimp5) clear * Check conversion - "incimp" is noted as being imputed mi describe * Run logit regression using multiple imputation mi estimate: logit CVD i.birthcohort10 c.age c.age#c.age i.female i.incimp if insample==1
I had previously posted on IPUMS forum, and they directed me to Statalist: https://forum.ipums.org/t/stata-logi...=lilian_brusic
