spline_variable {vtreat} | R Documentation |
Spline variable numeric target.
Description
Return a spline approximation of data.
Usage
spline_variable(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
[Package vtreat version 1.6.5 Index]