Dear Stef,
Another problem I encountered today showed itself when I was trying to reproduce some of your code from your book "Flexible Imputation of Missing Data" (fantastic book!).
At page 135-136 you present two code-solutions to the same post-processing setting:
library(mice)
ini <- mice(airquality[, 1:2], maxit = 0)
post <- ini$post
post["Ozone"] <- "imp[[j]][,i] <- squeeze(imp[[j]][,i], c(1,200))"
imp <- mice(airquality[, 1:2], method = "norm.nob", m = 1, maxit = 1, seed = 1, post = post)
Alternative to line 4:
post["Ozone"] <- "ifdo(c(Ozone < 1, Ozone > 200), c(1, 200))"
The former works fine but the latter gives the OzoneFunction ifdo() not yet implemented.
Has the "ifdo" function been withdrawn from the package?
Best regards,
Mikkel
Dear Stef,
Another problem I encountered today showed itself when I was trying to reproduce some of your code from your book "Flexible Imputation of Missing Data" (fantastic book!).
At page 135-136 you present two code-solutions to the same post-processing setting:
Alternative to line 4:
post["Ozone"] <- "ifdo(c(Ozone < 1, Ozone > 200), c(1, 200))"The former works fine but the latter gives the
OzoneFunction ifdo() not yet implemented.Has the "ifdo" function been withdrawn from the package?
Best regards,
Mikkel