Description Usage Arguments Value Author(s)
First fit iregnet to the entire data set, then use K-fold cross-validation to estimate the validation error of each lambda parameter.
1 | cv.iregnet(x, y, family, nfolds, foldid, ...)
|
x |
numeric matrix of input features (n x p) |
y |
numeric matrix of output variables (n x 2) |
family |
gaussian, logistic |
nfolds |
positive integer between 2 and n, by default 10. |
foldid |
integer vector of length n (fold for each observation), by default we use nfolds. |
... |
passed to iregnet for both the full and cv fits. |
model fit list of class "cv.iregnet"
Toby Dylan Hocking
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.