Learn R Programming

CMHNPA (version 1.1.1)

cereal: Cereal data

Description

Each of five breakfast cereals are ranked by ten judges, who each taste three cereals. Each cereal is assessed six times.

Usage

data(cereal)

Arguments

Format

A data frame with 30 rows and three columns.

rank

the rank of the cereal within each judge block

judge

the judge that was used

type

the type of cereal

Details

The data comes from a Balanced Incomplete Block Design with the number of treatments t = 5, number of blocks b = 10, with k = 3 and r = 6.

References

Kutner, M., Nachtsheim, C., Neter, J. and Li, W. (2005). Applied linear statistical models (5th ed.). Boston: McGraw-Hill Irwin.

Examples

Run this code
attach(cereal)
durbin(y = rank, groups = type, blocks = judge)

Run the code above in your browser using DataLab