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.


stacks documentation built on Nov. 6, 2023, 5:08 p.m.