imputation_plot: imputation_plot

Description Usage Arguments Details Value Examples

Description

imputation_plot graphically compare values across imputations

Usage

1
imputation_plot(mice.object, vars, include.data)

Arguments

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?

Details

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

Value

a density plot from the ggplot2 package

Examples

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

njtierney/neato documentation built on May 23, 2019, 8:22 p.m.