Learn R Programming

imputation (version 2.0.3)

cv.meanImpute: CV for meanImpute

Description

Cross Validation for mean Imputation Artificially erase some data and run meanImpute to compute the RMSE on the subset of x for which data was artificially erased.

Usage

cv.meanImpute(x)

Arguments

x
a data frame or matrix where each row represents a different record

Examples

Run this code
x = matrix(rnorm(100),10,10)
  x.missing = x > 1
  x[x.missing] = NA
  cv.meanImpute(x)

Run the code above in your browser using DataLab