powered by
vtreat custom coder based on RcppDynProg::solve_for_partition().
vtreat
RcppDynProg::solve_for_partition()
piecewise_constant(varName, x, y, w = NULL)
character, name of variable to work on.
numeric, input values.
numeric, values to estimate.
numeric, weights.
piecewise_constant("x", 1:8, c(-1, -1, -1, -1, 1, 1, 1, 1))
Run the code above in your browser using DataLab