mi_values: Plots to visualize imputed values

Description Usage Arguments Author(s) Examples

View source: R/mi_values.R

Description

Draws boxplots, densityplots or histograms of the observed (blue) and imputed (red) values.

Usage

1
mi_values(input, type = "boxplot1", var = "all", mis_count = 5, m_hist = 1)

Arguments

input

MI object produced by mi, mice or Amelia.

type

a character string: "hist" draws histograms of a specific imputation chain. "boxplot1" / "densityplot1" plots the observed values and all imputed values for every imputation chain. "boxplot2" / "densityplot2" plots the observed values and all imputed values without distinguishing between the different imputation chains. "boxplot3" / "densityplot3" plots the observed values and all values from the completed imputed dataset for each imputation chain.

var

vector that defines which variables are to be plotted, default is "all".

mis_count

densityplots are only drawn for every variable with more than mis_count missing values.

m_hist

number of the imputation chain that should be plotted. Only if type = "hist".

Author(s)

Paul Brix

Examples

1
2
3
4
data(FLAS)
require(mice)
FLASmi <- mice(FLAS)
mi_values(FLASmi, type="hist")

mmaechler/miP documentation built on May 23, 2019, 5 a.m.