HWE               package:GeneticsBase               R Documentation

_T_e_s_t _t_h_e _s_i_g_n_i_f_i_c_a_n_c_e_s _o_f _H_a_r_d_y-_W_e_i_n_b_e_r_g _E_q_u_i_l_i_b_r_i_u_m (_d_i_s)_e_q_u_i_l_i_b_r_i_u_m) _s_t_a_t_i_s_t_i_c_s

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

     Test the significances of Hardy-Weinberg Equilibrium
     (dis)equilibrium) statistics for each marker in a data set.

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

     HWE(object, ...) 

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

  object: a geneSet object.

     _t_e_s_t specifys the test method. Available methods are "exact",
          "permutation", "chisq".

     _B an integer specifying the number of replicates used in the Monte
          Carlo test. Defaults to 10000.

     _R Number of bootstrap iterations to use when computing the
          confidence interval. Defaults to 1000.

     _c_o_r_r_e_c_t see 'diseq.ci'.

     _c_o_n_f Confidence level to use when computing the confidence level
          for linkage disequilibrium measures.  Defaults to 0.95,
          should be in (0,1).

     _n_a._r_m logical. Should missing values be removed?

     _f_o_u_n_d_e_r_O_n_l_y Indicates if only founders are used to do the test.

          And  othere arguments used by the function 'chisq.test'. 

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

     The function 'HWE' returns a list: 

 "diseq": a character string.

    call: the matched call.

     "D": a matrix with $m$ rows and $3+p$ columns, where $m$ is the
          number of markers in the geneSet, $p$ is the number of
          elements of the argument 'conf'. The first column is the
          estimated "D". The next $p$ columns are estimated confidence
          limits for the confidence levels specified in the argument
          'conf'. The last two columns are the sample size and the
          p-value of the test that "D" is equal to zero.

    "D'": a matrix with $m$ rows and $3+p$ columns, where $m$ is the
          number of markers in the geneSet, $p$ is the number of
          elements of the argument 'conf'. The first column is the
          estimated "D'". The next $p$ columns are estimated confidence
          limits for the confidence levels specified in the argument
          'conf'. The last two columns are the sample size and the
          p-value of the test that "D'" is equal to zero.

     "r": a matrix with $m$ rows and $3+p$ columns, where $m$ is the
          number of markers in the geneSet, $p$ is the number of
          elements of the argument 'conf'. The first column is the
          estimated "r". The next $p$ columns are estimated confidence
          limits for the confidence levels specified in the argument
          'conf'. The last two columns are the sample size and the
          p-value of the test that "r" is equal to zero.

 "X$^2$": a matrix with $m$ rows and $3+p$ columns, where $m$ is the
          number of markers in the geneSet, $p$ is the number of
          elements of the argument 'conf'. The first column is the test
          statistic "X$^2$" for HWE test. The next $p$ columns are
          zeros. The last two columns are the sample size and the
          p-value of the test for Hardy-Weinberg equilibrium.

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

     Gregory R. Warnes gregory.r.warnes@pfizer.com and Nitin Jain
     nitin.jain@pfizer.com

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

     library(GeneticsBase)
     data(CAMP)

     HWE(CAMP)

