

   sleep {base}                                 R Documentation

   SSttuuddeennttss'' SSlleeeepp DDaattaa

   DDeessccrriippttiioonn::

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

   UUssaaggee::

        data(sleep)

   FFoorrmmaatt::

        A data frame with 20 observations on 2 variables.

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

   SSoouurrccee::

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

   RReeffeerreenncceess::

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

   EExxaammpplleess::

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

