build_linear_predictor: Creates an R expression for a linear predictor from a data...

Description Usage Arguments Value

View source: R/expressions.R

Description

Creates an R expression for a linear predictor from a data frame of terms and coefficients

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
build_linear_predictor(x, ...)

## S3 method for class ''_elnet''
build_linear_predictor(x, ...)

## S3 method for class ''_lognet''
build_linear_predictor(x, ...)

## S3 method for class ''_multnet''
build_linear_predictor(x, ...)

Arguments

x

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

...

Not currently used.

Value

An R expression or a list of R expressions, depending on the type of model being used.


stacks documentation built on July 23, 2021, 5:08 p.m.