Wraps SNSeg::SNSeg_Uni() (Zhao, Jiang and Shao, 2022):
self-normalised segmentation with nested local windows. Self-normalisation
avoids estimating the long-run variance, is robust to temporal dependence,
and detects changes in general parameters — mean, variance, quantiles,
autocorrelation, or bivariate correlation — within one framework.
Usage
sn_wrapper(
x,
parameter = c("mean", "variance", "acf", "bivcor"),
confidence = 0.9,
grid_size = NULL,
...
)Arguments
- x
A numeric vector (or a two-column matrix for
parameter = "bivcor").- parameter
Which parameter to test for changes:
"mean","variance","acf", or"bivcor"(bivariate correlation). Defaults to"mean".- confidence
Confidence level of the self-normalised test, one of 0.9, 0.95, 0.99, 0.995 or 0.999. Defaults to
0.9.- grid_size
Grid size controlling the local-window sweep; when
NULLthe engine's default is used.- ...
Additional arguments passed to
SNSeg::SNSeg_Uni().
