Description Usage Arguments Details Value References See Also Examples
Implements the \insertCiteRyan2020;textualchangepoint.cov method for detecting covariance changes in multivariate time series. This method is aimed at independent high-dimensional time series.
1 2 3 4 5 6 7 8 9 |
X |
Data matrix of dimension n by p. |
threshold |
Threshold choice for determining significance of changepoints. Choices include:
If numCpts is numeric then the threshold is not used as the number of changepoints is known. |
numCpts |
Number of changepoints in the data. Choices include:
|
msl |
Minimum segment length allowed between the changepoints. NOTE this should be greater than or equal to p, the dimension of the time series. |
thresholdValue |
Either the manual threshold value when threshold="Manual" or the (1-thresholdValue)-quantile of asymptotic distribution of the test statistic when threshold="Asymptotic". |
errorCheck |
Logical. If TRUE error checking is performed |
Class |
Logical. If TRUE then an S4 class is returned. If FALSE the estimated changepoints are returned. |
This function calculates the test statistic, T, described in
\insertCiteRyan2020;textualchangepoint.cov. Using results from Random
Matrix Theory the test statistic is normalised by it's asymptotic expectation
and variance so that it follows a standard Normal distribution. Following the
paper, the threshold log(n)
is used if the threshold is set as
asymptotic, else the user defined manual threshold is used. If multiple
changepoints are possible then the Binary Segmentation algorithm is used to
detect multiple changes. If the minimum segment length is too small then the
numerical integration performed in the normalization of the test statistic can
be unstable. In this scenario the minimum segment length will be automatically
increased. This method is designed for independent time series, if the time
series contains temporal dependence we recommend using the
cptCUSUM
function.
An object of S4 class cptCovariance
is returned. If Class="FALSE", the vector of changepoints are returned.
Ryan2020changepoint.cov
cptCov
, cptCovariance
, wishartDataGeneration
, ratioTestStat
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.