tbyt {gap}R Documentation

LD statistics for two SNPs

Description

LD statistics for two SNPs

Usage

tbyt(h,n)

Arguments

h a vector of haplotype frequencies
n number of haplotypes

Value

The returned value is a list containing:

h the original haplotype frequency vector
n the number of haplotypes
D the linkage disequilibrium parameter
VarD the variance of D
Dmax the maximum of D
VarDmax the variance of Dmax
Dprime the scaled disequilibrium parameter
VarDprime the variance of Dprime
x2 the Chi-squared statistic

References

Zapata C, Alvarez G, Carollo C (1997) Approximate variance of the standardized measure of gametic disequilibrium D'. Am. J. Hum. Genet. 61:771-774

Note

extracted from 2ld.c

Author(s)

Jing hua Zhao

See Also

kbyl

Examples

## Not run: 
h <- c(0.442356,0.291532,0.245794,0.020319)
n <- 481*2
tbyt(h,n)
## End(Not run)

[Package Contents]