SNSeg_Uni
returns an S3 object of class "SNSeg_Uni" including
the time series, the type of parameter to be tested, the local window size to
cover a change point, the estimated change-point locations, the confidence level
and the critical value of the SN test. It also generates a time series segmentation
plot when plot_SN = TRUE
.
ts
A numeric vector or two-dimensional matrix of the input
time series.
paras_to_test
A character, numeric value, a function or vector of the
parameter(s) used for the SN test.
grid_size
A numeric value of the window size.
SN_sweep_result
A list of matrices where each matrix
consists of four columns: (1) SN-based test statistic for each change-point
location (2) Change-point location (3) Lower bound of the local window and
(4) Upper bound of the local window.
est_cp
A vector containing the locations of the estimated
change-points.
confidence
Confidence level of SN test as a numeric value.
critical_value
Critical value of the SN-based test statistic.
Users can apply the functions summary.SN
to compute the parameter estimate
of each segment separated by the detected change-points. An additional function
plot.SN
can be used to plot the time series with estimated change-points.
Users can set the option plot_SN = TRUE
or use the function plot.SN
to plot the time series.
It deserves to note that some change-points could be missing due to the constraint
on grid_size_scale
or related grid_size
that grid_size_scale
has a minimum value of 0.05. Therefore, SNCP claims no change-points within the
first ngrid_size_scale
or the last ngrid_size_scale
time points.
This is a limitation of the function SNSeg_Uni
.
For more examples of SNSeg_Uni
see the help vignette:
vignette("SNSeg", package = "SNSeg")