Description Usage Arguments Details Value Examples
imputation_plot
graphically compare values across imputations
1 | imputation_plot(mice.object, vars, include.data)
|
mice.object |
is an object of class 'mids' |
vars |
a vector of variables as character |
include.data |
logical: Do you want to include the original data? |
This code takes an object fitted with the 'mice' package and plots a density of each of the specified variables. Currently the variables have to be specified but in the future they might not be
a density plot from the ggplot2 package
1 2 3 4 5 6 7 | imp <- mice(nhanes)
plot1 <- imputation_plot(mice.object = imp,
vars = c("age", "bmi"),
include.data = F)
# show the density
plot1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.