% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xi_matrix.R
\name{xi_matrix}
\alias{xi_matrix}
\title{Multivariate Xi-Correlogram Matrix}
\usage{
xi_matrix(x, max_lag = 20, n_surr = 100, sig_level = 0.95)
}
\arguments{
\item{x}{A numeric matrix or data.frame containing the multivariate time series (columns = variables).}

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

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

\item{sig_level}{A numeric value between 0 and 1 specifying the significance level for the surrogate threshold. Default is 0.95.}
}
\value{
An S3 object of class \code{xi_matrix} containing a tidy data frame of pairwise results.
}
\description{
Computes the pairwise directional Chatterjee's Xi coefficient for a multivariate
time series dataset. It evaluates both "Lead -> Lag" and "Lag -> Lead" relationships
across all variable pairs, as well as the Xi-ACF (autocorrelation) for individual variables.
}
