| cpt_statistic | R Documentation |
Returns the criterion the engine evaluated at each position, which is what
explains why a changepoint landed where it did. Available for the
engines that expose it
(subset(cpt_methods(), statistic)$method lists them), and an error
naming those engines for the ones that do not.
cpt_statistic(object)
ggcpt_statistic(object)
object |
A |
cpt_statistic() returns a tibble with index,
statistic, threshold (the engine's rejection threshold, or
NA) and label (what the statistic is).
ggcpt_statistic() returns a two-panel ggplot: the series above,
the statistic below, sharing the x axis.
cpt_solution_path(),
cpt_scale_space().
set.seed(2026)
fit <- cpt_detect(c(rnorm(200), rnorm(200, 3)), method = "mosum")
head(cpt_statistic(fit))
ggcpt_statistic(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.