Learn R Programming

gap (version 0.4)

kbyl: LD statistics for two multiallelic loci

Description

LD statistics for two multiallelic loci

Usage

kbyl(n1,n2,h,n,optrho)

Arguments

n1
number of alleles at marker 1
n2
number of alleles at marker 2
h
a vector of haplotype frequencies
n
number of haplotypes
optrho
type of contingency table association, 0=Pearson, 1=Tschuprow, 2=Cramer (default)

Value

  • The returned value is a list containing:
  • n1the number of alleles at marker 1
  • n2the number of alleles at marker 2
  • hthe haplotype frequency vector
  • nthe number of haplotypes
  • VarDpvariance of D'
  • Dijtabletable of Dij
  • Dmaxtabletable of Dmax
  • Dijptabletable of Dij'
  • VarDijtabletable of variances for Dij
  • VarDijptabletable of variances for Dij'
  • x2the Chi-squared statistic
  • seX2the variance of x2
  • rhothe measure of association
  • seRthe standard error of rho
  • optrhothe method for calculating rho
  • klinfothe Kullback-Leibler information

References

Bishop YMM, Fienberg SE, Holland PW (1975) Discrete Multivariate Analysis -- Theory and Practice, The MIT press

Cramer H (1946) Mathematical Methods of Statistics. Princeton Univ. Press

Zapata C, Carollo C, Rodriquez S (2001) Sampleing variance and distribution of the D' measure of overall gametic disequilibrium between multiallelic loci. Ann. Hum. Genet. 65: 395-406

See Also

tbyt

Examples

Run this code
# example of two SNPs
h <- c(0.442356,0.291532,0.245794,0.020319)
n <- 481*2
kbyl(2,2,h,n)

Run the code above in your browser using DataLab