Learn R Programming

SemiPar (version 1.0-4.2)

pig.weights: Pig weight data

Description

The pig.weights data frame has 9 repeated weight measures on 48 pigs.

Usage

data(pig.weights)

Arguments

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.

References

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003) Semiparametric Regression Cambridge University Press. http://stat.tamu.edu/~carroll/semiregbook/

Examples

Run this code
# NOT RUN {
library(SemiPar)
data(pig.weights)
library(lattice)
xyplot(weight~num.weeks,data=pig.weights,groups=id.num,type="b")
# }

Run the code above in your browser using DataLab