cutoff | R Documentation |
This generic function returns one or more cut off values that are guaranteed
to have an effect on the model
passed to the function when a simplification
procedure is applied (in general a tree pruning operation as provided by
prune()
).
cutoff(model, ...)
model |
a model. |
... |
additional arguments for the cutoff function implementations |
The exact definition of what is a cut off value depends on the model type and is documented in concrete implementation of the function.
a cut off value or a vector of cut off values.
prune()
pc <- powerconsumption[powerconsumption$week == 5, ]
dts <- cut(pc$active_power, breaks = c(0, quantile(pc$active_power, probs = c(0.25, 0.5, 0.75, 1))))
model <- vlmc(dts)
draw(model)
model_cuts <- cutoff(model)
model_2 <- prune(model, model_cuts[2])
draw(model_2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.