GLMnet | R Documentation |
Fit GLMnet models via a formula and a data set for use with predictRisk
.
GLMnet(
formula,
data,
lambda = NULL,
cv = TRUE,
alpha = 1,
nfolds = 10,
type.measure = "deviance",
family,
...
)
formula |
A formula. |
data |
The data on which to fit the model. |
lambda |
The tuning parameters for GLMnet. If set to NULL, then it the parameters are chosen for you. |
cv |
Whether to use cross-validation or not. Default is TRUE. |
alpha |
The elasticnet mixing parameter. See the ?glmnet for more details. |
nfolds |
Number of folds for cross-validation. Default is 10. |
type.measure |
loss to use for cross-validation. Default is deviance. |
family |
passed to |
... |
Additional arguments that are passed on to the glmnet. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.