sleep            package:datasets            R Documentation(latin1)

_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 compared to control) on 10 patients.

_U_s_a_g_e:

     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   drug given

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

     Cushny, A. R. and Peebles, A. R. (1905) The action of optical
     isomers: II hyoscines. _The Journal of Physiology_ *32*, 501-510.

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

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

     Scheffe, Henry (1959) _The Analysis of Variance_. New York, NY:
     Wiley.

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

     require(stats)
     ## Student's paired t-test
     t.test(extra ~ group, data = sleep, paired = TRUE)

