mice.impute.mean {mice}R Documentation

Imputation by the Mean

Description

Imputes the arithmetic mean of the observed data

Usage

    mice.impute.mean(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.

Value

A vector of length nmis with imputations.

Warning

Imputing the mean of a variable is almost never appropriate. See Little and Rubin (1987).

Author(s)

Stef van Buuren, Karin Oudshoorn, 2000

References

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

Little, R.J.A. and Rubin, D.B. (1987). Statistical Analysis with Missing Data. New York: John Wiley and Sons.

See Also

mice, mean


[Package mice version 2.2 Index]