Open yshahppdi opened 4 years ago
I've tried the sample code @yshahppdi mentioned. But it has no matter to do with all_miss. The error just disappeared after setting maxit to 0. I don't know why. And there's also something weird, all "FALSE" variables (which has no NA and don't need to impute) are 0 in each imputation.
Run into this error will calling mice.resuse(testdata) :
Reproducible Example:
Solution 1) set the variable that are not supposed to be imputed all_miss = FALSE 2) reuse the predictor matrix formula from mids object passed ( not go back to default)
Sample code to fix it: