permTest | R Documentation |
The KCP permutation test implements the variance test and the variance drop test to determine if there is at least one change point in the running statistics
permTest(
data,
RS_fun,
wsize = 25,
nperm = 1000,
Kmax = 10,
alpha = 0.05,
varTest = FALSE
)
data |
data N x v dataframe where N is the number of time points and v the number of variables |
RS_fun |
Running statistics function: Should require the time series and |
wsize |
Window size |
nperm |
Number of permutations to be used in the permutation test |
Kmax |
Maximum number of change points desired |
alpha |
Significance level of the permutation test |
varTest |
If FALSE, only the variance DROP test is implemented, and if TRUE, both the variance and the variance DROP tests are implemented. |
sig |
Significance of having at least one change point. 0 - Not significant, 1- Significant |
p_var_test |
P-value of the variance test. |
p_varDrop_test |
P-value of the variance drop test. |
perm_rmin |
A matrix of minimized variance criterion for the permuted data. |
perm_rmin_without_NA |
A matrix of minimized variance criterion for the permuted data without NA values. |
Cabrieto, J., Tuerlinckx, F., Kuppens, P., Hunyadi, B., & Ceulemans, E. (2018). Testing for the presence of correlation changes in a multivariate time series: A permutation based approach. Scientific Reports, 8, 769, 1-20. doi:10.1038/s41598-017-19067-2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.