milk {CMHNPA} | R Documentation |
In each of four lactation periods each of four cows are fed a different diet. There is a washout period so previous diet does not affect future results. A 4 × 4 Latin square is used to assess how diet affects milk production.
data(milk)
A data frame with 16 rows and four columns.
a numerical measure of the milk production for the given diet, cow, and period
a factor showing which diet the cow was administered
a factor indicating the cow
a factor showing the relevant period
https://www.stat.purdue.edu/~yuzhu/stat514fall05/Lecnot/latinsquarefall05.pdf
attach(milk)
CARL(y = production, treatment = diet, block1 = cow, block2 = period)