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.


stacks documentation built on Nov. 6, 2023, 5:08 p.m.