Learn R Programming

SMPracticals (version 1.4-3.1)

rat.growth: Rat Growth Data

Description

Data on the weights of 30 rats each week for 5 weeks.

Usage

data(rat.growth)

Arguments

Format

A data frame with 150 observations on the following 3 variables.

rat

a factor with levels 1-30

week

takes values 0-4

y

rat weight (units unspecified)

References

Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 460.

Examples

Run this code
data(rat.growth)
library(nlme)
rat.fit <- groupedData( y~poly(week,2) | rat,
                   data = rat.growth,
                   labels = list( x = "Week",
                     y = "Weight" ),
                   units = list( x = "", y = "(?)") )

summary(lme(rat.fit))

Run the code above in your browser using DataLab