home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- bartlett.test(x, g)
-
- _A_r_g_u_m_e_n_t_s:
-
- x : a numeric vector of data values, or a list of
- numeric data vectors.
-
- g : a vector or factor object giving the group
- for the corresponding elements of x. Ignored
- if x is a list.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- bartlett.test performs Bartlett's test of the null that
- the variances in each of the groups (samples) are the
- same.
-
- If x is a list, its elements are taken as the samples
- to be compared for homogeneity of variances, and hence
- have to be numeric data vectors. In this case, g is
- ignored, and one can simply use bartlett.test(x) to
- perform the test. If the samples are not yet contained
- in a list, use bartlett.test(list(x, ...)).
-
- Otherwise, x must be a numeric data vector, and g must
- be a vector or factor object of the same length as x
- giving the group for the corresponding elements of x.
-
- _V_a_l_u_e_s:
-
- A list of class "htest" containing the following com-
- ponents:
-
- statistic : Bartlett's K-square test statistic.
-
- parameter : the degrees of freedom of the approximate chi-
- square distribution of the test statistic.
-
- p.value : the p-value of the test.
-
- method : the string "Bartlett test for homogeneity of vari-
- ances".
-
- data.name : a character string giving the names of the data.
-
-