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 understanding behavior of space in graph codeHello... I had a student run into a problem creating a graph when trying to apply a scheme...it wou…
Turning three variables into one based on year. Code included Code: * Example generated by -dataex-. For more info, type help dataex clear input double hhid int …
predictnl after reghdfeHello, I am using Stata 17 with predictnl version 1.8.2 and reghdfe version 6.12.2. I try to estim…
Heckman two-step can not cluster standard errorsDear Statalists, My dependent variable is y2_ft in the second stage of heckman selection model, f d…
stset with condition | Issue with codeWhat is wrong with my stset? I am excluding duplicates with the dupdrops variable for outcome analys…
Subscribe to:
Post Comments (Atom)
0 Response to xtile after mi impute chained
Post a Comment