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 (Oij - Eij)2 / Eij2
where
Eij = Ti * Tj/n
and
Ti and Tj are the sums of the row and columns respectively.
Yates' Corrected Χ2 is
Χ2Yates = ∑i ∑j (|Oij - Eij|-0.5)2 / Eij2
Pearson's Coefficient of Contingency
Pearson's C = √Χ2 / (Χ2 + n)
Cramér's Coefficient of Contingency
Cramér's V = √Χ2/n
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME Statistics Nodes (Labs) from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.