prediction_eqn: Convert one or more linear predictor to a format used for...

View source: R/expressions.R

prediction_eqnR Documentation

Convert one or more linear predictor to a format used for prediction

Description

Convert one or more linear predictor to a format used for prediction

Usage

prediction_eqn(x, ...)

## S3 method for class ''_lognet''
prediction_eqn(x, type = "class", ...)

## S3 method for class ''_elnet''
prediction_eqn(x, type = "numeric", ...)

## S3 method for class ''_multnet''
prediction_eqn(x, type = "class", ...)

Arguments

x

An object that uses a glmnet::glmnet() model and all numeric predictors.

...

Not currently used.

type

The prediction type.

Value

The return type varies, based on the model and prediction type.


tidymodels/stacks documentation built on March 23, 2024, 10:52 p.m.