Learn R Programming

mice (version 1.14)

impute.mean: Elementary Imputation Method: Simple Mean Imputation

Description

Imputes the arithmetic mean of the observed data

Usage

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.

Warning

Imputing the mean of a variable rarely produces appropriate inferences. See Little and Rubin (1987).

References

Van Buuren, S. & Oudshoorn, C.G.M. (2000). Multivariate Imputation by Chained Equations: MICE V1.0 User's manual. Report PG/VGZ/00.038, TNO Prevention and Health, Leiden. Little, R.J.A. and Rubin, D.B. (1987). Statistical Analysis with Missing Data. New York: John Wiley and Sons.

See Also

mice, mean