Description Usage Arguments Value Examples
View source: R/cross_validator.R
Fit a model using a design matrix with cross validation
1 2 |
X |
matrix of explanatory variables |
y |
vector of objective variable |
nfolds |
the number of folds (ignored if foldid is specified) |
lambda.min.ratio |
ratio of max lambda and min lambda (ignored if lambda is specified) |
nlambda |
the number of lambda (ignored if lambda is specified) |
lambda |
lambda sequence |
foldid |
vector indicating id of fold for each sample |
unit |
unit for cross validation error: "sample" (default) or "fold" |
seed |
random seed of cross validation |
cl |
(not yet implemented) |
... |
parameters of lasso function |
lasso model
fit |
lasso model with hole data |
lambda.min |
lambda with minimum cross validation error |
lambda.min.index |
index of lambda.min |
lambda.1se |
largest lambda such that error is within 1 standard error of the minimum |
lambda.1se.index |
index of lambda.1se |
delta |
delta defined above |
foldid |
fold id |
cve |
cross validation error |
cvse |
cross validation standard error |
cvup |
cross validation error + standard error |
cvlo |
cross validation error - standard error |
pe |
prediction error (for family="binomial") |
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.