ecp_wrapper | R Documentation |
The ecp package provides a non-parametric way to detect changepoints. Unlike
the changepoint package, it does not assume raw data to have any formal
distribution. This wrapper function wraps two functions from the ecp package,
i.e., e.divisive()
and e.agglo()
. Users can use either function
by switching the algorithm
argument. Before using the wrapper function
, seed should be set for the sake of reproducibility.
ecp_wrapper(data, algorithm = "divisive", min_size = 2, ...)
data |
A vector. |
algorithm |
Either |
min_size |
Minimum number of observations between change points. By
default is 2. This argument is only applied when |
... |
Extra arguments to pass on either from |
A tibble includes which point(s) is/are the changepoint along with raw changepoint value corresponding to that changepoint.
james2013ecpggchangepoint
set.seed(2022) ecp_wrapper(c(rnorm(100,0,1),rnorm(100,0,10))) ecp_wrapper(c(rnorm(100,0,1),rnorm(100,10,1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.