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

Description Usage Arguments Value

View source: R/expressions.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 July 23, 2021, 5:08 p.m.