predict_glmnet: Predict using generalized linear model with elastic net...

Description Usage Arguments Value Author(s) See Also

View source: R/glmnet.r

Description

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

Usage

1
2
3
4
5
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.

...

Sent to predict.glmnet.

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.

Author(s)

Christofer Bäcklin

See Also

emil, fit_glmnet, importance_glmnet, modeling_procedure


emil documentation built on Aug. 1, 2018, 1:03 a.m.

Related to predict_glmnet in emil...