tbyt                   package:gap                   R Documentation

_L_D _s_t_a_t_i_s_t_i_c_s _f_o_r _t_w_o _S_N_P_s

_D_e_s_c_r_i_p_t_i_o_n:

     LD statistics for two SNPs

_U_s_a_g_e:

     tbyt(h,n)

_A_r_g_u_m_e_n_t_s:

       h: a vector of haplotype frequencies

       n: number of haplotypes

_V_a_l_u_e:

     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

_R_e_f_e_r_e_n_c_e_s:

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

_N_o_t_e:

     extracted from 2ld.c

_A_u_t_h_o_r(_s):

     Jing hua Zhao

_S_e_e _A_l_s_o:

     'kbyl'

_E_x_a_m_p_l_e_s:

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

