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
Create n random samples from existing listHi, I am quite new to STATA and my issue might be easy to solve. I created a list of random number…
Accessing model results from MataI know the functions st_global(), st_numscalar(), and st_matrix() can be used to access information …
Help estimating the matching weights (teffects psmatch or psmatch2)Hi Statalist, My colleagues and I are using propensity score matching to evaluate the impact of an …
From panel data to cross-sectional dataI have been given a data set that is in the format of paneldata. I would like to transform the datas…
Exporting pca results to ExcelHello, I am trying to export the results of my pca from Stata to Excel. I have tried following Clyd…
Subscribe to:
Post Comments (Atom)
0 Response to new variable from mi impute
Post a Comment