pig.weights {SemiPar} | R Documentation |
Pig weight data
Description
The pig.weights
data frame has 9 repeated
weight measures on 48 pigs.
Usage
data(pig.weights)
Format
This data frame contains the following columns:
- id.num
identification number of pig.
- num.weeks
number of weeks since measurements commenced.
- weight
bodyweight of pig "id.num" after "num.weeks" weeks.
Source
Diggle, P.J., Heagerty, P., Liang, K.-Y. and Zeger, S.L. (2002). Analysis of Longitudinal Data, Second Edition, Oxord: Oxford University Press.
References
Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)
Semiparametric Regression Cambridge University Press.
http://stat.tamu.edu/~carroll/semiregbook/
Examples
library(SemiPar)
data(pig.weights)
library(lattice)
xyplot(weight~num.weeks,data=pig.weights,groups=id.num,type="b")
[Package SemiPar version 1.0-4.2 Index]