% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xi_ccf.R
\name{xi_ccf}
\alias{xi_ccf}
\title{Directional Xi-CCF Test for Multivariate Time Series}
\usage{
xi_ccf(
  x,
  y,
  max_lag = 20,
  n_surr = 100,
  bidirectional = TRUE,
  sig_level = 0.95
)
}
\arguments{
\item{x}{A numeric vector representing the first time series.}

\item{y}{A numeric vector representing the second time series.}

\item{max_lag}{An integer specifying the maximum positive lag.}

\item{n_surr}{An integer specifying the number of MIAAFT surrogate datasets.}

\item{bidirectional}{Logical. If TRUE (default), computes both directions.}

\item{sig_level}{A numeric value between 0 and 1 specifying the significance level. Default is 0.95.}
}
\value{
An object of class \code{"xi_ccf"}.
}
\description{
Calculates Chatterjee's Xi cross-correlation and the standard Cross-Correlation Function (CCF)
across positive lags to evaluate directional lead-lag relationships.
}
