plot_mice_distrib: Plot imputed vs. raw data for 'mice' model

View source: R/plot_mice_distrib.R

plot_mice_distribR Documentation

Plot imputed vs. raw data for mice model

Description

Chooses the type of plot based on method used for each variable.

Usage

plot_mice_distrib(mids, vars)

Arguments

mids

mids result of call to mice().

vars

Character vector of names of variables to plot.

Examples

boys2 <- cbind(boys, dummy = c(NA, NA, NA, rbinom(nrow(boys) - 3, 1, .5)))
mice <- mice(boys2, method = c("pmm", "pmm", "pmm", "pmm", "pmm", "pmm", "polr", "pmm", "pmm", "logreg"))
plot_mice_distrib(mice, c("hgt", "dummy", "phb"))

wepelham3/sack2 documentation built on Aug. 5, 2023, 5:53 a.m.