piecewise_linear | R Documentation |
vtreat
custom coder based on RcppDynProg::solve_for_partition()
.
piecewise_linear(varName, x, y, w = NULL)
varName |
character, name of variable to work on. |
x |
numeric, input values. |
y |
numeric, values to estimate. |
w |
numeric, weights. |
piecewise_linear("x", 1:8, c(1, 2, 3, 4, 4, 3, 2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.