hist: Histograms of Multiply Imputed Data

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function creates a histogram from an object of missing_data.frame-class or mi-class

Usage

1
hist(x, ...)

Arguments

x

an object of missing_data.frame-class or mi-class

...

further arguments passed to plot.histogram

Details

When called on an object of missing_data.frame-class, the histograms of the observed data are generated, one for each missing_variable but grouped on a single page. When called on an object of mi-class, the histograms of the observed, imputed, and completed data are generated, one for each missing_variable, grouped on a single page for each chain.

Value

An invisible NULL is returned with a side-effect of creating a plot

Author(s)

Ben Goodrich and Jonathan Kropko, for this version, based on earlier versions written by Yu-Sung Su, Masanao Yajima, Maria Grazia Pittau, Jennifer Hill, and Andrew Gelman.

See Also

hist

Examples

1
2
3
4
if(!exists("imputations", env = .GlobalEnv)) {
  imputations <- mi:::imputations # cached from example("mi-package")
}
hist(imputations)

Example output

Loading required package: Matrix
Loading required package: stats4
mi (Version 1.0, packaged: 2015-04-16 14:03:10 UTC; goodrich)
mi  Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Trustees of Columbia University
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the General Public License version 2 or later.
Execute RShowDoc('COPYING') for details.

mi documentation built on May 1, 2019, 10:13 p.m.