Calculates the max-test statistic, where the maximum is taken over Chatterjee's rank correlation coefficients.
Source:R/max_stat.r
max_stat.Rd
This function returns the statistic $$\hat{T}=\sqrt{n}\max_{1\le j\le p}\hat{\xi}_j$$, where \(\hat{\xi}_j\) is the Chatterjee's rank correlation coefficient for the \(j\)-th hypothesis. See Olivares, Olma, and Wilhelm (2025) for details.