Description Usage Arguments Details Value References See Also Examples
View source: R/cusumTestStat.R
Calculates the CUSUM test statistic for all potential changepoint locations within the time series. See cptCUSUM
for more details.
1 | cusumTestStat(X, LRCov, msl)
|
X |
Data matrix of dimension n by p. |
LRCov |
A character describing the long-run covariance estimator to be used. Currently, only "Bartlett"; "Empirical"; or a manual long-run covariance are available, see |
msl |
A numeric giving the minimum segment length between changepoints. NOTE this should be greater than or equal to p. |
See cptCUSUM
.
A numeric vector containing the test statistic at each potential changepoint location.
Aue2009changepoint.cov
1 2 3 | data <- wishartDataGeneration(n=100,p=3,tau=50)$data
ans <- cusumTestStat(X=data,LRCov='Empirical',msl=20)
which.max(ans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.