Learn R Programming

gap (version 0.4)

tbyt: 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:
  • hthe original haplotype frequency vector
  • nthe number of haplotypes
  • Dthe linkage disequilibrium parameter
  • VarDthe variance of D
  • Dmaxthe maximum of D
  • VarDmaxthe variance of Dmax
  • Dprimethe scaled disequilibrium parameter
  • VarDprimethe variance of Dprime
  • x2the 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

See Also

kbyl

Examples

Run this code
h <- c(0.442356,0.291532,0.245794,0.020319)
n <- 481*2
tbyt(h,n)

Run the code above in your browser using DataLab