if (FALSE) {
library(agridat)
data(jansen.carrot)
dat <- jansen.carrot
libs(lattice)
dotplot(gen ~ y/n, data=dat, group=trt, auto.key=TRUE,
main="jansen.carrot",
xlab="Proportion of carrots infected per block", ylab="Genotype")
# Not run because CRAN wants < 5 seconds per example. This is close.
libs(lme4)
# Tentative model. Needs improvement.
m1 <- glmer(cbind(y,n-y) ~ gen*trt + (1|block),
data=dat, family=binomial)
summary(m1)
# Todo: Why are these results different from Jansen?
# Maybe he used ungrouped bernoulli data? Too slow with 4700 obs
}
Run the code above in your browser using DataLab