pigs | R Documentation |
Data on weight gains in 32 pigs, divided into eight groups of four, and with 4 different diets allocated to the group members.
data(pigs)
A data frame with 32 observations on the following 3 variables.
a factor with 8 levels
a factor with levels I
–IV
weight gain (units unknown)
Unpublished lecture notes, Imperial College, London
Davison, A. C. (2003) Statistical Models. Cambridge University Press. Page 431.
data(pigs)
anova(lm(gain~group+diet,data=pigs))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.