Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in passive imputation #130

Closed
stefvanbuuren opened this issue Jul 24, 2018 · 2 comments
Closed

Bug in passive imputation #130

stefvanbuuren opened this issue Jul 24, 2018 · 2 comments
Labels

Comments

@stefvanbuuren
Copy link
Member

stefvanbuuren commented Jul 24, 2018

The following code should yield a plot with straight lines

library(mice)
meth<- make.method(boys)
pred <- make.predictorMatrix(boys)
meth["bmi"]<- "~ I(wgt / (hgt / 100)^2)"
meth["wgt"]<- "~ I(bmi * (hgt / 100)^2)"
meth["hgt"]<- "~ I(sqrt(wgt / bmi) * 100)"
# pred[c("bmi", "wgt", "hgt"), ] <- 0
imp.path <- mice(boys, 
                 meth=meth,
                 pred=pred,
                 seed=123,
                 maxit = 5)
 plot(imp.path, c("hgt", "wgt", "bmi"))

There is a bug in mice 3.0.0 - mice 3.2.0 that produces wigly lines, and even crashes. I have identified the problem, and will make an update.

@stefvanbuuren
Copy link
Member Author

Version mice 3.2.1 solves this.

@stefvanbuuren
Copy link
Member Author

#f59e76f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant