Learn R Programming

LDtests (version 1.0)

Fisher1sided: 1-sided Fisher's test of linkage disequilibrium

Description

1-sided Fisher's test of linkage disequilibrium

Usage

Fisher1sided(ctable, side = "great")

Arguments

ctable
Vector of the 4 entries in the 2x2 contingency table
side
"great" or "less" according to which tail you are interested in

Value

pval.Fish
P-value
Prob
Probability of the contingency under the null
yobs
The observed n11 (first cell in the table)
n1
Row margin
n2
Column margin
nn
Sample size

References

Kulinskaya and Lewin 2008

Examples

Run this code
ctable <- c(4,5,1,20)
Fisher1sided(ctable) 

Run the code above in your browser using DataLab