PopulateTwoByTwoContingencyTable: Populate Two by Two Contingency Table

Description Usage Arguments Value References

View source: R/PopulateTwoByTwoContingencyTable.r

Description

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.

Usage

1
PopulateTwoByTwoContingencyTable(rowAndColumnSumValues, n_pp)

Arguments

rowAndColumnSumValues

the row and column sums (r+, r-, c+, c-).

n_pp

the value of n++.

Value

the completed 2x2 contingency table: n++, n+-, n-+, n–

References

L Chindelevitch et al. Causal reasoning on biological networks: Interpreting transcriptional changes. Bioinformatics, 28(8):1114-21, 2012.


CausalR documentation built on Nov. 8, 2020, 5:25 p.m.