Wraps wbsts::wbs.lsw() (Korkas and Fryzlewicz): wild binary
segmentation applied to the locally stationary wavelet spectrum, so it
detects changes in the second-order structure — variance and
autocovariance — of a nonstationary series. Where wbs looks for
jumps in the level, this looks for jumps in how the series behaves.
Usage
wbsts_wrapper(
x,
n_intervals = 0,
cstar = 0.75,
lambda = 0.75,
scales = NULL,
seed = NULL,
...
)Arguments
- x
A numeric vector.
- n_intervals
Number of random intervals (
M). Defaults to0, which is the engine's "all dyadic intervals" setting.- cstar, lambda
Post-processing constants; the engine's defaults are
0.75for both.- scales
Wavelet scales to use.
NULLlets the engine choose.- seed
Optional seed.
- ...
Additional arguments passed to
wbsts::wbs.lsw().
References
Korkas KK, Fryzlewicz P (2017). “Multiple change-point detection for non-stationary time series using wild binary segmentation.” Statistica Sinica, 27(1), 287–311. doi:10.5705/ss.202015.0262 .
See also
Other changepoint engines:
bcp_wrapper(),
beast_wrapper(),
bfast_wrapper(),
binsegrcpp_wrapper(),
bocpd_wrapper(),
cpm_wrapper(),
cpop_wrapper(),
cpt_wrapper(),
decafs_wrapper(),
ecp_wrapper(),
envcpt_wrapper(),
esac_wrapper(),
fabisearch_wrapper(),
fastcpd_wrapper(),
fcov_wrapper(),
fmean_wrapper(),
fpop_wrapper(),
geomcp_wrapper(),
hdcov_wrapper(),
hdreg_wrapper(),
idetect_wrapper(),
inspect_wrapper(),
kcp_wrapper(),
kwc_wrapper(),
mcp_wrapper(),
mosum_wrapper(),
network_wrapper(),
not_wrapper(),
npmojo_wrapper(),
nsp_wrapper(),
ocd_wrapper(),
pilliat_wrapper(),
segmented_wrapper(),
smuce_wrapper(),
sn_wrapper(),
strucchange_wrapper(),
taylor_wrapper(),
tguh_wrapper(),
trend_wrapper(),
var_wrapper(),
wbs2_wrapper(),
wbs_wrapper()
Examples
# \donttest{
set.seed(2026)
y <- c(as.numeric(stats::arima.sim(list(ar = 0.1), 250)),
as.numeric(stats::arima.sim(list(ar = 0.9), 250)))
wbsts_wrapper(y)
#> ggcpt (changepoint detection result)
#> Method: wbsts
#> Change in: var
#> Changepoints found: 1
#> CP convention: left
#> Penalty: threshold
#> Series length: 500
#>
#> Changepoints:
#> # A tibble: 1 × 2
#> cp cp_value
#> <int> <dbl>
#> 1 248 0.654
# }
