| xi_ccf | R Documentation |
Calculates Chatterjee's Xi cross-correlation and the standard Cross-Correlation Function (CCF) across positive lags to evaluate directional lead-lag relationships.
xi_ccf(
x,
y,
max_lag = 20,
n_surr = 100,
bidirectional = TRUE,
sig_level = 0.95
)
x |
A numeric vector representing the first time series. |
y |
A numeric vector representing the second time series. |
max_lag |
An integer specifying the maximum positive lag. |
n_surr |
An integer specifying the number of MIAAFT surrogate datasets. |
bidirectional |
Logical. If TRUE (default), computes both directions. |
sig_level |
A numeric value between 0 and 1 specifying the significance level. Default is 0.95. |
An object of class "xi_ccf".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.