if (FALSE) {
library(agridat)
data(harville.lamb)
dat <- harville.lamb
dat <- transform(dat, line=factor(line), sire=factor(sire), damage=factor(damage))
library(lattice)
bwplot(weight ~ line, dat,
main="harville.lamb",
xlab="line", ylab="birth weights")
if(0){
libs(lme4, lucid)
m1 <- lmer(weight ~ -1 + line + damage + (1|sire), data=dat)
summary(m1)
vc(m1) # Khuri reports variances 0.5171, 2.9616
## grp var1 var2 vcov sdcor
## sire (Intercept) 0.5171 0.7191
## Residual 2.962 1.721
}
}
Run the code above in your browser using DataLab