Perform hierarchical moving-window statistical analysis for time series.
Source:R/TH_coupled.R
TH_coupled.RdPerform hierarchical moving-window statistical analysis for coupled time
series. It returns analysis on moving correlations using Pearson's
correlation coefficient and Mann-Kendall correlation coefficient. The results
are in a data.frame to be passed to TH_plotc() function.
Usage
TH_coupled(
series1,
series2,
m = NULL,
s = NULL,
alpha = 0.1,
mode = "all",
alternative = c("two.sided", "greater", "less")
)Arguments
- series1
a
numerical vectorcontaining NA for missing values.- series2
a
numerical vectorcontaining NA for missing values. It must be of the same length ofseries1.- m
a
numericpositive integer, subsampling parameter. Optional (default: autocalculated).- s
a
numericpositive integer, cutoff parameters for subseries legth. Optional (default: autocalculated).- alpha
a
numericsignificance level for flagging (default: 0.1).- mode
a
characterstring specifying the computation mode. One of: "all", "pearson", "kendall", "both", "pearson_with_p", "kendall_with_p".- alternative
Optional, "two.sided" (Default), "greater", "less".
Author
Vladimiro Andrea Boselli, (2025) boselli.v@irea.cnr.it