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?