LD2sided.tables: Tables of p-values and Linkage Disequilibrium measures for all 2x2 tables possible under the null distribution.
Description
This function calculates p-values and Linkage Disequilibrium measures for all possible 2x2 contingency tables consistent with the margins of the input observed contingency table. See LD2sided.pvals for details of the Linkage Disequilibrium measures and tests used.
Usage
LD2sided.tables(ctable)
Arguments
ctable
Vector of the 4 entries in the 2x2 contingency table
Value
Outputs the table of LD p-values for all the contingency tables consistent with the margins of the input table.
Details
This function prints out three tables. First lists all contingency tables consistent with the margins of the input table. Second lists the orderings of the contingency tables according to the different LD measures. Third gives the different LD p-values for all the contingency tables.