milk {CMHNPA} | R Documentation |
Milk data
Description
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.
Usage
data(milk)
Format
A data frame with 16 rows and four columns.
- production
a numerical measure of the milk production for the given diet, cow, and period
- diet
a factor showing which diet the cow was administered
- cow
a factor indicating the cow
- period
a factor showing the relevant period
Source
https://www.stat.purdue.edu/~yuzhu/stat514fall05/Lecnot/latinsquarefall05.pdf
Examples
attach(milk)
CARL(y = production, treatment = diet, block1 = cow, block2 = period)
[Package CMHNPA version 1.1.1 Index]