home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / ctest / mcnemar.test < prev    next >
Encoding:
Text File  |  1997-09-13  |  1.2 KB  |  35 lines

  1.     
  2.     _M_c_N_e_m_a_r'_s _C_h_i-_s_q_u_a_r_e _T_e_s_t _f_o_r _C_o_u_n_t _D_a_t_a
  3.     
  4.          mcnemar.test(x, y = NULL, correct = TRUE)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : either a two-dimensional contingency table in
  9.                    matrix form, or a factor object.
  10.     
  11.                y : a factor object; ignored if x is a matrix.
  12.     
  13.          correct : a logical indicating whether to apply con-
  14.                    tinuity correction when computing the test
  15.                    statistic.
  16.     
  17.     _D_e_s_c_r_i_p_t_i_o_n:
  18.     
  19.          mcnemar.test performs an McNemar's chi-square test for
  20.          symmetry of rows and columns in a two-dimensional con-
  21.          tingency table.  The null is that the probabilities of
  22.          being classified into cells [i,j] and [j,i] are the
  23.          same.
  24.     
  25.          If x is a matrix, it is taken as a two-dimensional con-
  26.          tingency table, and hence its entries should be nonne-
  27.          gative integers.  Otherwise, both x and y must be vec-
  28.          tors of the same length.  Incomplete cases are removed,
  29.          the vectors are coerced into factor objects, and the
  30.          contingency table is computed from these.
  31.     
  32.          Continuity correction is only used in the 2-by-2 case
  33.          if correct is TRUE.
  34.     
  35.