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-M / help / ctest / bartlett.test < prev    next >
Encoding:
Text File  |  1997-09-13  |  1.6 KB  |  49 lines

  1.     
  2.     _B_a_r_t_l_e_t_t _T_e_s_t _f_o_r _H_o_m_o_g_e_n_e_i_t_y _o_f _V_a_r_i_a_n_c_e_s
  3.     
  4.          bartlett.test(x, g)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.                x : a numeric vector of data values, or a list of
  9.                    numeric data vectors.
  10.     
  11.                g : a vector or factor object giving the group
  12.                    for the corresponding elements of x.  Ignored
  13.                    if x is a list.
  14.     
  15.     _D_e_s_c_r_i_p_t_i_o_n:
  16.     
  17.          bartlett.test performs Bartlett's test of the null that
  18.          the variances in each of the groups (samples) are the
  19.          same.
  20.     
  21.          If x is a list, its elements are taken as the samples
  22.          to be compared for homogeneity of variances, and hence
  23.          have to be numeric data vectors.  In this case, g is
  24.          ignored, and one can simply use bartlett.test(x) to
  25.          perform the test.  If the samples are not yet contained
  26.          in a list, use bartlett.test(list(x, ...)).
  27.     
  28.          Otherwise, x must be a numeric data vector, and g must
  29.          be a vector or factor object of the same length as x
  30.          giving the group for the corresponding elements of x.
  31.     
  32.     _V_a_l_u_e_s:
  33.     
  34.          A list of class "htest" containing the following com-
  35.          ponents:
  36.     
  37.     statistic : Bartlett's K-square test statistic.
  38.     
  39.     parameter : the degrees of freedom of the approximate chi-
  40.               square distribution of the test statistic.
  41.     
  42.     p.value : the p-value of the test.
  43.     
  44.      method : the string "Bartlett test for homogeneity of vari-
  45.               ances".
  46.     
  47.     data.name : a character string giving the names of the data.
  48.     
  49.