Computes the likelihood-ratio test statistic (G statistic) from the mutual
information and the joint count of two variables:
$$G = 2 \times n \times MI,$$
where \(n\) is the joint sample size and \(MI\) is the mutual information.
Usage
gstat(mi, count)
Value
A numeric scalar giving the G statistic value.
Arguments
mi
Numeric scalar; the mutual information between two variables.
count
Integer scalar; the joint count (sample size) used in computing
mi.