Learn R Programming

agridat (version 1.8.1)

cochran.latin: Latin square design

Description

Six wheat plots were sampled by six operators and shoot heights measured. The operators sampled plots in six ordered sequences. The dependent variate was the difference between measured height and true height of the plot.

Arguments

source

Cochran, W.G. and Cox, G.M. (1957), Experimental Designs, 2nd ed., Wiley and Sons, New York.

Examples

Run this code
dat <- cochran.latin

desplot(diff~col*row, dat, text=operator, cex=1, main="cochran.latin")
dat <- transform(dat, rf=factor(row), cf=factor(col))
aov.dat <- aov(diff ~ operator + Error(rf*cf), dat)
summary(aov.dat)
model.tables(aov.dat, type="means")

Run the code above in your browser using DataLab