viewHW                 package:fbat                 R Documentation

_V_i_e_w _a_l_l_e_l_e _f_r_e_q_u_e_n_c_i_e_s, _H_a_r_d_y-_W_e_i_n_b_e_r_g _e_q_u_i_l_i_b_r_i_u_m _t_e_s_t _s_t_a_t_i_s_t_i_c_s _f_o_r _s_p_e_c_i_f_i_e_d _m_a_r_k_e_r

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

     View allele frequencies, Hardy-Weinberg equilibrium test
     statistics for specified marker.

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

       viewHW(HW.object, markerName)

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

HW.object: object returned by the function 'pedHardyWeinberg'.

markerName: a character string indicating the name of marker whose
          statistics are to be viewed

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

    resM: A vector records the following quantities for the specified
          marker: 'nInfoInd' (number of informative individuals, i.e.
          individuals whose genotypes contain no missing alleles for
          the specified marker), 'nGenotype' (number of possible
          genotypes), 'nHET' (number of heterozygous genotypes), 'nHOM'
          (number of homozygous genotypes), 'nAllele' (number of
          alleles), 'nMissing' (number of missing alleles), 'chi2' (chi
          square test statistic), 'df' (degree of freedom of the chi
          square test statistic under H0), 'p-value' (pvalue of the
          test).

nGenotypeM: number of possible genotypes for the specified marker.

genotypeM: possible genotypes and their frequencies.

  piVecM: allele frequencies.

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

     Weiliang Qiu stwxq@channing.harvard.edu,  Ross Lazarus
     ross.lazarus@channing.harvard.edu,  Gregory Warnes
     warnes@bst.rochester.edu, Nitin Jain nitin.jain@pfizer.com

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

       data(CAMP)
       res<-pedHardyWeinberg(CAMP)
       viewHW(res, "m709")
       viewHW(res, "m654")
       viewHW(res, "m47")
       viewHW(res, "p46")
       viewHW(res, "p79")
       viewHW(res, "p252")
       viewHW(res, "p491")
       viewHW(res, "p523")

