Description Usage Arguments Value Examples
This function implemented a missing value based CV model selection approach. First, ratio_mis percent elements are randomly selected as missing values. After that a EM-SVD model is constructed to estimate the prediction error. The details of this function can be found in https://arxiv.org/abs/1902.06241.
1 |
X |
a quantitative data set |
K |
K-fold cross validation |
Rs |
the searching range of the number of components |
opts |
a list contains the setting for the algorithm.
|
ratio_mis |
the propotion of missing values |
This function returns a list contains
Rs: the number of PCs used for model selection
cvErrors: K-fold cross validation errors
1 | ## Not run: svd_CV(X,K=3,Rs = 1:15,opts=list(),ratio_mis=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.