Skip to contents

Wraps the breakfast package's WBS2 solution path with steepest-drop-to-low-levels (SDLL) model selection.

Usage

wbs2_wrapper(x, ...)

Arguments

x

A numeric vector.

...

Additional arguments passed to breakfast::breakfast().

Value

A ggcpt object.

References

Fryzlewicz P (2020). “Detecting Multiple Change-Point Features via Narrowest-Over-Threshold.” Journal of the Royal Statistical Society Series B, 82(5), 1377–1418.

Examples

set.seed(2026)
res <- wbs2_wrapper(c(rnorm(60), rnorm(60, 4)))
res$changepoints
#> # A tibble: 1 × 2
#>      cp cp_value
#>   <int>    <dbl>
#> 1    60   -0.999