Learn R Programming

mice (version 2.7)

mice.impute.sample: Imputation by Simple Random Sampling

Description

Imputes a random sample from the observed y data

Usage

mice.impute.sample(y, ry, x=NULL, ...)

Arguments

y
Incomplete data vector of length n
ry
Vector of missing data pattern (FALSE=missing, TRUE=observed)
x
Matrix (n x p) of complete covariates.
...
Other named arguments.

Value

  • A vector of length nmis with imputations.

Details

This function takes a simple random sample from the observed values in y, and returns these as imputations.

References

Van Buuren, S., Groothuis-Oudshoorn, K. (2011) MICE: Multivariate Imputation by Chained Equations in R. Journal of Statistical Software, forthcoming. http://www.stefvanbuuren.nl/publications/MICE in R - Draft.pdf