Relative Content

Tag Archive for rr-mice

Bug in as.mids()

I have the following problem:
There seems to be a problem with as.mids() in R. The values in a long-Format differ from those after as.mids() was applied. In the first I have a difference for scaled data, in the second the median split is incorrect after transformation.

Process data after mice imputation to have different dimensions and convert back to mids object

After performing imputation, I would like to perform a few data processing steps like recoding variables and removing rows, before converting the data to a mids object in order to fit models. However, mice seems to expect the same number of rows and throws an error that more rows are expected. Is there a way to change the imputed data shape and convert to mids object without getting an error? I’m happy to give a reproducible example if needed.