gam_formula {tidysdm}R 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


[Package tidysdm version 0.9.4 Index]