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

View source: R/expressions.R

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


tidymodels/stacks documentation built on March 23, 2024, 10:52 p.m.