random.imp: Random Imputation of Missing Data

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

Description

Simple random imputation of missing values in given data set.

Usage

1
random.imp(data, imp.method = c( "bootstrap", "pca" ) , ...)

Arguments

data

A vector, matrix, or data frame with missing data.

imp.method

Character to specify which method of random imputation to use. Default is "bootstrap". Note: pca is not implemented in the current version.

...

Unused

Details

Impute missing values based on the observed data for the variable.

Value

Data with its missing values imputed using the specified method.

Author(s)

Masanao Yajima yajima@stat.columbia.edu, M.Grazia Pittau grazia@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu

References

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

See Also

mi

Examples

1
2
  data(CHAIN)
  data.imp <- random.imp(CHAIN) 

mi documentation built on May 2, 2019, 4:43 p.m.

Related to random.imp in mi...