Description Usage Arguments Details Value Author(s) References See Also
Returns a degrees of freedom corrected residual mean-squared error of a soft-thresholding estimator where the tuning parameter is chosen by a cross-validation-ish procedure.
1 2 |
Y |
The data matrix. |
c_val |
The ad-hoc adjustment to the degrees of freedom. Choi et al (2014) found that 2/3 worked well in simulations. |
k |
A positive integer. The fold for the soft-impute cross validation. Default is 10. |
lambda_grid |
A vector of positive numerics. The values of lambda to
compute. The default is 20 values from the minimum to the maximum singular
value of |
print_update |
A logical. Should we print to the screen the status of the cross-validation-ish procedure at each iteration (TRUE) or not (FALSE)? |
See Choi et al (2014) for details. This seems to be the best estimation procedure so far, but also takes the longest.
You can try out different values of c_val
with the outputs
of sse
and dfLambda
sig2_est
A positive numeric. The estimate of the
variance.
sse
A positive numeric. The sum of squared errors for
estimated Y.
dfLambda
A positive integer. The estimated df.
David Gerard
Choi, Yunjin, Jonathan Taylor, and Robert Tibshirani. "Selecting the number of principal components: Estimation of the true rank of a noisy matrix." arXiv preprint arXiv:1410.8260 (2014).
soft_cv
for the cross-validation-ish procedure.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.