mice.impute.sample {mice}R Documentation

Elementary Imputation Method: Simple Random Sample

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.

Details

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

Value

A vector of length nmis with imputations.

Author(s)

Stef van Buuren, Karin Groothuis-Oudshoorn, 2000

References

Van Buuren, S., Groothuis-Oudshoorn, C.G.M. (2000) Multivariate Imputation by Chained Equations: MICE V1.0 User's manual. Leiden: TNO Quality of Life. http://www.stefvanbuuren.nl/publications/MICE V1.0 Manual TNO00038 2000.pdf


[Package mice version 1.21 Index]