Learn R Programming

CMHNPA (version 1.1.1)

milk: 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)

Arguments

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

Examples

Run this code
attach(milk)
CARL(y = production, treatment = diet, block1 = cow, block2 = period)

Run the code above in your browser using DataLab