Description Usage Arguments Examples
Imputation using Singular Value Thresholding First fill missing values using the mean of the column. Then, compute the SVD of the matrix, and subtract lambda from each of the singular values, thresholding at 0. Impute by multiplying back out the augmented SVD
1 | SVTApproxImpute(x, lambda, verbose = F)
|
x |
a data frame or matrix where each row represents a different record |
lambda |
the penalty on the singular values |
verbose |
if TRUE print status updates |
1 2 3 4 | x = matrix(rnorm(100),10,10)
x.missing = x > 1
x[x.missing] = NA
SVTApproxImpute(x, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.