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 / mantelhaen.test < prev    next >
Encoding:
Text File  |  1997-09-13  |  1.3 KB  |  36 lines

  1.     
  2.     _M_a_n_t_e_l-_H_a_e_n_s_z_e_l _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.          mantelhaen.test(x, y = NULL, z = NULL, correct = TRUE)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : either an array of dimension 2 by 2 by s,
  9.                    where s is the number of strata, or a dicho-
  10.                    tomous factor object.
  11.     
  12.                y : a dichotomous factor object;  ignored if x is
  13.                    an array.
  14.     
  15.                z : a factor object idenitifying to which stratum
  16.                    the corresponding elements in x and y belong;
  17.                    ignored if x is an array.
  18.     
  19.          correct : a logical indicating whether to apply con-
  20.                    tinuity correction when computing the test
  21.                    statistic.
  22.     
  23.     _D_e_s_c_r_i_p_t_i_o_n:
  24.     
  25.          mantelhaen.test performs a Mantel-Haenszel chi-square
  26.          test of the null that x and y are conditionally
  27.          independent in each stratum.
  28.     
  29.          If x is an array, it must be of dimension 2 by 2 by s,
  30.          and the entries should be nonnegative integers.  NA's
  31.          are not allowed.  Otherwise, x, y and z must have the
  32.          same length.  Triples containing NA's are removed.
  33.          Both x and y must be dichotomous (take exactly 2
  34.          values).
  35.     
  36.