mean_impute {MixtureMissing} | R Documentation |
Mean Imputation
Description
Replace missing values of data set by the mean of other observed values.
Usage
mean_impute(X)
Arguments
X |
An |
Value
A complete data matrix with missing values imputed accordingly.
References
Schafer, J. L. and Graham, J. W. (2002). Missing data: our view of the state of the art.
Psychological Methods, 7(2):147–177.
Little, R. J. A. and Rubin, D. B. (2020). Statistical analysis with missing data.
Wiley Series in Probability and Statistics. Wiley, Hoboken, NJ, 3rd edition
Examples
X <- matrix(nrow = 6, ncol = 3, byrow = TRUE, c(
NA, 2, 2,
3, NA, 5,
4, 3, 2,
NA, NA, 3,
7, 2, NA,
NA, 4, 2
))
mean_impute(X)
[Package MixtureMissing version 3.0.2 Index]