Learn R Programming

sits (version 1.12.0)

sits_formula_smooth: Define a smoothing formula for classification models

Description

A function to be used as a symbolic description of some fitting models such as gam. This function instructs the model to do a smoothing transformation (via splines) of the input values. `predictors_index` parameter informs the positions of `tb` fields corresponding to formula independent variables. If no value is given, the default is NULL, a value indicating that all fields will be used as predictors.

Usage

sits_formula_smooth(predictors_index = -2:0)

Arguments

predictors_index

Index of the valid columns whose names are used to compose formula (default: NULL).

Value

A function that computes a valid formula.