plots {agricolae}R Documentation

Data for an analysis in split-plot

Description

Experimental data in blocks, factor A in plots and factor B in sub-plots.

Usage

data(plots)

Format

A data frame with 18 observations on the following 5 variables.

block
a numeric vector
plot
a factor with levels p1 p2 p3 p4 p5 p6
A
a factor with levels a1 a2
B
a factor with levels b1 b2 b3
yield
a numeric vector

Source

International Potato Center. CIP

Examples

library(agricolae)
data(plots)
str(plots)
plots[,1] <-as.factor(plots[,1])
# split-plot analysis
model <- aov(yield ~ block + A + Error(plot)+ B + A:B, data=plots)
summary(model)

[Package agricolae version 1.0-5 Index]