Description Usage Arguments Value Author(s) Examples
cross validation function for EMlasso
.
1 2 3 |
X |
the matrix (of size n*p) of the covariates. |
y |
a vector of length n with the response. |
lambda |
Values at which prediction error should be computed. |
nbFolds |
the number of folds for the cross-validation. |
maxSteps |
Maximal number of steps for EM algorithm. |
intercept |
If TRUE, there is an intercept in the model. |
model |
"linear" or "logistic". |
burn |
Number of steps for the burn period. |
threshold |
Zero tolerance. Coefficients under this value are set to zero. |
eps |
Tolerance of the EM algorithm. |
epsCG |
Epsilon for the convergence of the conjugate gradient. |
A list containing
Mean prediction error for each value of index.
Standard error of lambda
.
Minimal lambda
criterion.
Values of lambda
at which prediction error should be computed.
Value of lambda
for which the cv criterion is minimal.
Quentin Grimonprez, Serge Iovleff
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.