Hi everyone!
I need help! I have multiple imputed my data using -mi impute chained-.
One of the imputed variables is a metric socio-economic indicator(ses) derived form a pca analysis (standardized weighted factor score).
Now I want to create a new variable that is equal to the 4 quartile groups of ses. I have tried:
mi extract 0
mi xeq: xtile sesquart = ses, n(4)
mi replace0 using closures_imputed.dta, id(id)
But, the number of observations when combining the dataset still corresponds to m=0 which is much less than the imputed values.
Essentially I want a grouped variables that I can use for analysis.
What am I doing wrong?
Related Posts with xtile after mi impute chained
How to make a graph of mean and standard deviation?Greetings. How can I make this graph of mean and standard deviation in stata? What would the command…
Descriptive statistics after regression: multiple observations per idDear Statalist users, I am running a conditional risk set model (survival analysis), which entails …
Outreg2 in a loop and table titleHello everyone, I am facing an issue with the outreg2 command. So I am trying to run a loop like th…
How to create percentiles?I am working with US Census data for 2000. It is an individual-level data (14,081,466 observations) …
Comparison between Children in the Same HouseholdHello All, First off, allow me to apologize in advance for any errors I make in the formatting of m…
Subscribe to:
Post Comments (Atom)
0 Response to xtile after mi impute chained
Post a Comment