Conduct an at-most one changepoint hypothesis test for changes in the covariance operator of functional data based on the FKWC (functional Kruskal–Wallis covariance changepoint) procedures outlined by Ramsay and Chenouri (2025).
Usage
amoc_test(data, ranks = NULL, depth = c("RPD", "FM", "LTR", "FMd", "RPDd"))Value
A list consisting of:
$changepoint: Index of the estimated changepoint.$pvalue: The p-value based on the null distribution.$method: Astring"AMOC test (KWCChangepoint)"
Note
The options for the depth argument are as follows:
RPD: Random projection depthFM: Frainman-Muniz depthLTR: \(L^2\)-root depth, most suitable for detecting changes in the normFMd: Frainman-Muniz depth of the data and its first order derivativeRPDd: Random projection depth of the data and its first order derivativeThe depth arguments that incorporate the first order derivative (which is approximated using fda.usc::fdata.deriv) result in a more robust detection of changes in the covariance structure (Ramsay and Chenouri, 2025).