gam_formula: Create a formula for gam

View source: R/gam_formula.R

gam_formulaR Documentation

Create a formula for gam

Description

This function takes the formula from a recipe, and turns numeric predictors into smooths with a given k. This formula can be passed to a workflow or workflow set when fitting a gam.

Usage

gam_formula(object, k = 10)

Arguments

object

a recipes::recipe, already trained

k

the k value for the smooth

Value

a formula


tidysdm documentation built on April 3, 2025, 9:56 p.m.