Learn R Programming

stacks (version 1.0.0)

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

Description

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

Usage

build_linear_predictor(x, ...)

# S3 method for `_elnet` build_linear_predictor(x, ...)

# S3 method for `_lognet` build_linear_predictor(x, ...)

# S3 method for `_multnet` build_linear_predictor(x, ...)

Value

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

Arguments

x

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

...

Not currently used.