cutoff.ctx_node {mixvlmc} | R Documentation |
Cut off value for pruning a node in the context tree of a VLMC
Description
This function returns the cut off value associated to a specific node in the
context tree interpreted as a VLMC. The node is represented by a ctx_node
object as returned by find_sequence()
or contexts()
. For details, see
cutoff.vlmc()
.
Usage
## S3 method for class 'ctx_node'
cutoff(model, scale = c("quantile", "native"), raw = FALSE, ...)
Arguments
model |
a |
scale |
specify whether the results should be "native" log likelihood ratio values or expressed in a "quantile" scale of a chi-squared distribution (defaults to "quantile"). |
raw |
specify whether the returned values should be limit values
computed in the model or modified values that guarantee pruning (see
details in |
... |
additional arguments for the |
Value
a cut off value
See Also
Examples
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)
model_ctxs <- contexts(model)
cutoff(model_ctxs[[1]])
cutoff(model_ctxs[[2]], scale = "native", raw = TRUE)
[Package mixvlmc version 0.2.1 Index]