View source: R/ctx_node_vlmc.R
cutoff.ctx_node | R Documentation |
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()
.
## S3 method for class 'ctx_node'
cutoff(model, scale = c("quantile", "native"), raw = FALSE, ...)
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 |
a cut off value
cutoff()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.