PopulateTwoByTwoContingencyTable {CausalR} | R Documentation |
Calculates a 2x2 contingency table. Given the value of n++ and the row and column sums (r+, r-, c+, c-), Calculates the remaining values in the 2x2 contingency table i.e. n+-, n-+, and n–. See Chindelevich et al. BMC Bioinformatics (2012) paper 'Assessing Statistical significance of causal graphs' for clarification on notation.
PopulateTwoByTwoContingencyTable(rowAndColumnSumValues, n_pp)
rowAndColumnSumValues |
the row and column sums (r+, r-, c+, c-). |
n_pp |
the value of n++. |
the completed 2x2 contingency table: n++, n+-, n-+, n–
L Chindelevitch et al. Causal reasoning on biological networks: Interpreting transcriptional changes. Bioinformatics, 28(8):1114-21, 2012.