Learn R Programming

emil (version 2.2.10)

predict_glmnet: Predict using generalized linear model with elastic net regularization

Description

Due to the way glmnet is implemented, the regularization alpha can not be modified after the model is fitted.

Usage

predict_glmnet(object, x, s, ...)

predict_ridge_regression(object, x, s, ...)

predict_lasso(object, x, s, ...)

Arguments

object

Fitted model.

x

New data to be predicted.

s

Regularization parameter lambda.

...

Value

A list with a subset of the following elements:

prediction

The response of the modeling problem, i.e. a factor for classification, problems, a numeric for regressions, and a relative risk for survival analyses.

probability

Data frame of predicted class probabilities.

link

Link function values.

See Also

emil, fit_glmnet, importance_glmnet, modeling_procedure