Learn R Programming

imputation (version 2.0.3)

cv.gbmImpute: CV for gbmImpute

Description

Cross Validation for GBM Imputation Artificially erase some data and run gbmImpute. Compute the RMSE on the subset of x for which data was artificially erased.

Usage

cv.gbmImpute(x, ...)

Arguments

x
a data frame or matrix where each row represents a different record
...
extra parameters to be passed to gbmImpute

Examples

Run this code
x = matrix(rnorm(10000),1000,10)
  x.missing = x > 2
  x[x.missing] = NA
  cv.gbmImpute(x)

Run the code above in your browser using DataLab