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
Merging databasesHi there, I really appreciate any help you can offer me. Basically I have a relational database iss…
Fixed effects code in a regressionDear Everyone, I would like to know if my code is correct. I am doing a regression (DiD) where I ha…
Drop or Keep Observations by titleDear Researchers, hope everyone blessed with healthy life. I've a column (in Excel) with different …
Need help:marginal problem of fmlogitHi I used this code to estimated average marginal effect after fmlogit fmlogit governing safety edu…
Missing categories in newly created categorical variableHi Statalist. I have found that after creating a new categorical variable that not all categories a…
Subscribe to:
Post Comments (Atom)
0 Response to xtile after mi impute chained
Post a Comment