Multiply Imputed Dataframes

Share:

Description

Function to return completed data set from result of mi program.

Usage

1
2
3
4
## S4 method for signature 'mi'
mi.completed(object)
## S4 method for signature 'mi'
mi.data.frame(object, m = 1)

Arguments

object

mi object containing a multiply imputed data set. The mi object is generated by the mi function.

m

Index of the imputed data set. The default is 1.

Value

A data set or a list of datasets with the missing data imputed.

Author(s)

Yu-Sung Su suyusung@tsinghua.edu.cn Masanao Yajima yajima@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu

References

Yu-Sung Su, Andrew Gelman, Jennifer Hill, Masanao Yajima. Forthcoming. “Multiple Imputation with Diagnostics (mi) in R: Opening Windows into the Black Box”. Journal of Statistical Software.

Andrew Gelman and Jennifer Hill. (2007). Data Analysis Using Regression and Multilevel/Hierarchical Models. Cambridge University Press.

See Also

mi

Examples

1
2
3
4
5
6
  #data(CHAIN)
  #IMP <- mi (CHAIN, n.iter=6, add.noise=FALSE)
  ### get all imputed dataset
  #imputed.matrix <- mi.completed (IMP)  
  ### get the 3rd chain of the imputed dataset
  #imputed.data.frame <- mi.data.frame(IMP, m=3) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.