Description Usage Arguments Examples
Cross Validation for SVT Imputation Artificially erase some data and run SVTImpute multiple times, varying lambda using lambda.range. For each lambda, compute the RMSE on the subset of x for which data was artificially erased.
1 2 3 | cv.SVTImpute(x,
lambda.range = seq(0, 1, length.out = 101),
parallel = F, ...)
|
x |
a data frame or matrix where each row represents a different record |
lambda.range |
a vector of penalty terms to use in the CV |
parallel |
runs each run for lambda in lambda.range in parallel. Requires a parallel backend to be registered |
... |
extra parameters to pass to SVTImpute |
1 2 3 4 | x = matrix(rnorm(100),10,10)
x.missing = x > 1
x[x.missing] = NA
cv.SVTImpute(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.