mi_categories: Visualize Imputed Categorical Values

Description Usage Arguments Details Author(s) Examples

View source: R/mi_categories.R

Description

Plot to visualize which categories have been imputed by the different imputation chains for a certain categorical variable.

Usage

1

Arguments

input

MI object produced by mi or mice() from mice.

var

variablename of a factor to be plotted.

sort

defines whether or not to sort by categories.

legend

logical specifying if a legend should be drawn.

Details

y-axis represents the m different imputation chains, x-axis all imputed observations. Each colour stands for one category. Therefore each box illustrates which category has been imputed for each missing value differed by imputation chains.

Author(s)

Paul Brix

Examples

1
2
3
4
data(FLAS)
require("mice")
FLASmi <- mice(FLAS)
mi_categories(FLASmi, "priC", sort=TRUE)

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