LD2sided.tables: Tables of p-values and Linkage Disequilibrium measures for...

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1

Arguments

ctable

Vector of the 4 entries in the 2x2 contingency 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.

Value

Outputs the table of LD p-values for all the contingency tables consistent with the margins of the input table.

Author(s)

Alex Lewin

References

Kulinskaya and Lewin 2008

See Also

LD2sided.pvals

Examples

1
2
3
ctable <- c(0,9,5,16)
LD2sided.tables(ctable)
LD2sided.pvals(ctable)$pval.Fish

LDtests documentation built on May 20, 2017, 3:27 a.m.

Search within the LDtests package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.