spline_variablec: Spline variable categorical target.

View source: R/spline_variable.R

spline_variablecR Documentation

Spline variable categorical target.

Description

Return a spline approximation of the change in log odds.

Usage

spline_variablec(varName, x, y, w = NULL)

Arguments

varName

character, name of variable

x

numeric input (not empty, no NAs).

y

numeric or castable to such (same length as x no NAs), output to match

w

numeric positive, same length as x (weights, can be NULL)

Value

spline y prediction


vtreat documentation built on Aug. 20, 2023, 1:08 a.m.