Learn R Programming

SMPracticals (version 1.3-1)

pigs: Pig Diet Data

Description

Data on weight gains in 32 pigs, divided into eight groups of four, and with 4 different diets allocated to the group members.

Usage

data(pigs)

Arguments

source

Unpublished lecture notes, Imperial College, London

References

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

Examples

Run this code
data(pigs)
anova(lm(gain~group+diet,data=pigs))

Run the code above in your browser using DataLab