Dear all,
I'm struggling to generate a new variable after a Multiple Imputation. I'm new in MI, but before asking I've been reading different threads on this issue. As far as I understood, it would seem that the command that I should use is -mi passive- but I'm not sure about this.
I have a variable that includes 13 parties voted at the individual-level. Nevertheless, I do have missing values for survey respondents who:
1) have not voted;
2) have answered that they don't remember or refused to answer.
Considering my research design, I have decided to impute these missing values.
The model is the following
noisily mi impute mlogit parties = ivar [indepvars], augment force add(60)
I now need to store the results into a new variable which I will use to attribute each respondent a specific score that I derived. By reading Stata help material, I could not understand exactly what to do to generate this new variable that includes results from -mi imput mlogit-
I have tried the command
mi passive: egen miparties = mean(parties)
but I get a return message error claiming that the variable _1_parties is not found (and actually, it is not there!)
variable _1_parties not found
st_varrename(): 3500 invalid Stata variable name
u_mi_wide_swapvars(): - function returned error
<istmt>: - function returned error
I thus imagine that I missed some step in between or my procedure is not correct. Can you help me?
Thank you in advance for your support,
J.
Related Posts with new variable from mi impute
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
How to create individual panel data through merging two cross sectionsHello All I am in need of desperate help regarding my model. I have cross-section data done for two …
Plotting multiple bar graphs with CII want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code …
Export matrix to excel. How to asign rows on a loopHello, I'm estimating a model where I have 74,000 equations, and I want to export the estimators to…
Event study versus difference-in-difference.Dear All, I am trying to evaluate the impact of a treatment using difference-in-difference and even…
Subscribe to:
Post Comments (Atom)
0 Response to new variable from mi impute
Post a Comment