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
Help on collapseHello! I am working on historical financial data. A small sample of my data looks like this: auto…
Endogeneity test (for ordered probit model) after CMP command?I am using ordered probit model with (dummy) endogenous variable. I am interested to test the endoge…
locals and varnamesDear all, say that i want to create new variables using a numlist as follows: Code: forvalues i=5(…
How to add another variable as a label above stacked bar chartHi, First, I want to say that I don't have a good english. So,if something is not understood I can …
Coarsened Exact Matching (CEM)I have a dataset containing treatment and control firms. Each firm belongs to a technology class def…
Subscribe to:
Post Comments (Atom)
0 Response to xtile after mi impute chained
Post a Comment