

sleep {base}                                 R Documentation

_S_t_u_d_e_n_t_s_' _S_l_e_e_p _D_a_t_a

_D_e_s_c_r_i_p_t_i_o_n_:

     Data which show the effect of two soporific drugs
     (increase in hours of sleep) on groups consisting of 10
     patients each.

_U_s_a_g_e_:

     data(sleep)

_F_o_r_m_a_t_:

     A data frame with 20 observations on 2 variables.

      [, 1]     extra     numeric     increase in hours of sleep
      [, 2]     group     factor      patient group

_S_o_u_r_c_e_:

     Student (1908), The probable error of the mean.
     Biometrika, 6, 20.

_R_e_f_e_r_e_n_c_e_s_:

     Scheff'e, Henry (1959): The analysis of variance.  New
     York, NY: Wiley.

_E_x_a_m_p_l_e_s_:

     data(sleep)
     ## ANOVA
     anova(lm(extra ~ group, data = sleep))

