subspaceTestStat: Test statistic for Subspace method

Description Usage Arguments Details Value References See Also Examples

View source: R/subspaceTestStat.R

Description

Calculates the Subspace test statistic for all potential changepoint locations within the time series. See cptSubspace for more details.

Usage

1

Arguments

X

Data matrix of dimension n by p.

subspaceDim

Dimension of the latent subspace.

msl

Minimum segment length between changepoints. NOTE this should be greater than or equal to p.

Details

See cptSubspace.

Value

A numeric vector containing the test statistic at each potential changepoint location

References

\insertRef

Grundy2020changepoint.cov

See Also

cptSubspace

Examples

1
2
3
4
set.seed(1)
data <- subspaceDataGeneration(n=100,p=20,subspaceDim=5,tau=50,changeSize=0.5*sqrt(5))$data
ans <- subspaceTestStat(X=data,subspaceDim=5,msl=30)
which.max(ans)

grundy95/changepoint.cov documentation built on April 5, 2021, 6:21 p.m.