build_linear_predictor {stacks}R Documentation

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 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.


[Package stacks version 1.1.1 Index]