DiscStat: Test statistic for dependence in contingency table
Description
This function computes the value of the test statistic \(T_n\) measuring the strength of
dependence in a contingency table. See Section 3.1 of BKS2020USP
for a definition.
Usage
DiscStat(freq)
Arguments
freq
Two-way contingency table whose strength of dependence is to be measured.
Value
A list containing the value of the test statistic \(T_n\), the table of expected
null counts, and the table of contributions to \(T_n\).