piecewise_constant | R Documentation |
vtreat
custom coder based on RcppDynProg::solve_for_partition()
.
piecewise_constant(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_constant("x", 1:8, c(-1, -1, -1, -1, 1, 1, 1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.