Learn R Programming

agridat (version 1.8.1)

steel.soybeanmet: Soybean yields in North Carolina

Description

Soybean yields in a multi-environment trial in North Carolina.

Arguments

source

Steel, R.G.D. and Torrie, J.H., 1980. Principles and procedures of statistics: a biometrical approach, McGraw-Hill New York. Page 400.

Details

The experiment was planted as an RCB with 3 blocks at each location.

References

Mick O'Neill, 2010. Anova and REML: A Guide to Linear Mixed Models In An Experimental Design Context.

Examples

Run this code
# REML analysis as in O'Neill, p. 130.
dat <- steel.soybeanmet
require(lme4)
m1 <- lmer(yield ~ loc + (1|gen) + (1|gen:loc) + (1|loc:block), data=dat)
# Are gen:loc effects significant?  No.
m2 <- lmer(yield ~ loc + (1|gen) + (1|loc:block), data=dat)
anova(m1,m2)
# h^2 deviations
ranef(m2)$gen

Run the code above in your browser using DataLab