This node calculates the Maximum Likelihood Estimate (MLE) Odds Ratio (OR) and the Maximum Likelihood Estimate (MLE) Risk Ratio (RR), i.e., "Wald" OR and RR, from two selected categorical columns. For each column a value is selected to be considered the value under observation. All other values in non-binary categorical columns are considered as the "not" case.

X | ¬ X | |
---|---|---|

Y | a | b |

¬ Y | c | d |

Odds Ratio:

OR = (a/b) / (c/d) = (a * d) / (b * c)

Risk Ratio:

RR = (a / (a+b)) / (c / (c+d))

**Fisher's Exact Test** is calculated with

p = (a + b)!(c + d)!(a + c)!(b + d)! / (a!b!c!d!n!), where

n = a + b + c + d

over the sum of the marginal tables.

The two-tailed, left-tailed, and right-tailed p-values are calculated. The value for the Laplace correction is not considered for this calculation.

The **Chi-Squared Test** ( **Χ** ^{2} ) is calculated with

Χ ^{2} = ∑ _{i} ∑ _{j} (O _{ij} - E _{ij} ) ^{2} / E _{ij} ^{2}

where

E _{ij} = T _{i} * T _{j} /n

and

T _{i} and T _{j} are the sums of the row and columns respectively.

**Yates' Corrected Χ** ^{2} is

Χ ^{2} _{Yates} = ∑ _{i} ∑ _{j} (|O _{ij} - E _{ij} |-0.5) ^{2} / E _{ij} ^{2}

**Pearson's Coefficient of Contingency**

Pearson's C = √Χ ^{2} / (Χ ^{2} + n)

**Cramér's Coefficient of Contingency**

Cramér's V = √Χ ^{2} /n