Closed DanielIAvila closed 9 months ago
I believe this is not a bug in mice
, but a problem with the custom imputation function. The function you wrote does not adhere to the mice.impute.XYZ
conventions, where XYZ
refers to your imputation model, see e.g. https://github.com/amices/mice/blob/master/R/mice.impute.mpmm.R for an example of a multivariate imputation method.
I have a really "big" problem using
mice
. I have posted a question here.I am getting an error (displayed in the title), but my
df_a
has160 rows
and6 columns
, where thepredictor_matrix
has the same shape, except that the first three columns are set toFALSE
and the remaining three toTRUE
.