chickgr {datana} | R Documentation |
Chicken growth data.
Description
Time series data. The body weights of the chicks were measured at birth and every second day thereafter until day 20. They were also measured on day 21. There were four groups on chicks on different protein diets.
Usage
data(chickgr)
Format
Contains four variables, as follows:
- diet
a factor with levels 1,2,3 and 4 indicating which experimental diet the chick received.
- chick
an ordered factor with levels different giving a unique identifier for the chick. The ordering of the levels groups chicks on the same diet together and orders them according to their final weight (lightest to heaviest) within diet.
- time
a numeric vector giving the number of days since birth when the measurement was made.
- weight
a numeric vector giving the body weight of the chick, in gr.
Source
The data were obtained from the 'alr4' library.
References
Crowder M, Hand D. 1990. Analysis of Repeated Measures. Chapman and Hall
Examples
data(chickgr)
head(chickgr)
library(lattice)
xyplot(weight~time|as.factor(diet), groups=as.factor(chick), type="b",data=chickgr)