Hi!
I have a dataset with 60 variables that were imputed using MICE. Unfortunately, one variable were excluded by mistake from the imputation and hence I imputed it using MICE after the first imputation was finished. The imputation was finished and all well, but when using MI extract, var61 does not get its imputed values with it!
What is the problem? It feels like something obvious I'm missing.
I have a dataset with 60 variables that were imputed using MICE. Unfortunately, one variable were excluded by mistake from the imputation and hence I imputed it using MICE after the first imputation was finished. The imputation was finished and all well, but when using MI extract, var61 does not get its imputed values with it!
Code:
set more off
set matsize 11000
mi set wide
mi register imputed var1-var60
mi impute chained (pmm, knn(3)) var1-var60, add(10)
* And then
set more off
set matsize 11000
mi set wide
mi register imputed var61
mi impute chained (pmm, knn(3)) var61, add(10)
** Which gives me the following output **
Observations per m
Variable Complete Incomplete Imputed Total
var61 40375 3 3 40378
* And then I try with the mi extract
mi extract 1
sum var61
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
var61 | 40,375 1.755012 1.261333 1 6

Comment