home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- mcnemar.test(x, y = NULL, correct = TRUE)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : either a two-dimensional contingency table in
- matrix form, or a factor object.
-
- y : a factor object; ignored if x is a matrix.
-
- correct : a logical indicating whether to apply con-
- tinuity correction when computing the test
- statistic.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- mcnemar.test performs an McNemar's chi-square test for
- symmetry of rows and columns in a two-dimensional con-
- tingency table. The null is that the probabilities of
- being classified into cells [i,j] and [j,i] are the
- same.
-
- If x is a matrix, it is taken as a two-dimensional con-
- tingency table, and hence its entries should be nonne-
- gative integers. Otherwise, both x and y must be vec-
- tors of the same length. Incomplete cases are removed,
- the vectors are coerced into factor objects, and the
- contingency table is computed from these.
-
- Continuity correction is only used in the 2-by-2 case
- if correct is TRUE.
-
-