Learn R Programming

SMPracticals (version 1.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

source

Gelfand, A. E., Hills, S. E., Racine-Poon, A. and Smith, A. F. M. (1990) Illustration of Bayesian inference in normal data models using Gibbs sampling. Journal of the American Statistical Association, 85, 972--985.

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