Learn R Programming

tidysdm (version 1.0.0)

gam_formula: 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)

Value

a formula

Arguments

object

a recipes::recipe, already trained

k

the k value for the smooth