if (FALSE) {
data(piepho.barley.uniformity)
dat <- piepho.barley.uniformity
libs(desplot)
desplot(yield ~ col*row, dat,
tick=TRUE, # aspect unknown
main="piepho.barley.uniformity.csv")
libs(asreml,dplyr)
dat <- mutate(dat, x=factor(col), y=factor(row))
dat <- arrange(dat, x, y)
# Piepho AR1xAR1 model (in random term, NOT residual)
m1 <- asreml(data=dat,
yield ~ 1,
random = ~ x + y + ar1(x):ar1(y),
residual = ~ units,
na.action=na.method(x="keep") )
m1 <- update(m1)
# Match Piepho table 3, footnote 4: .9671, .9705 for col,row correlation
# Note these parameters are basically at the boundary of the parameter
# space. Questionable fit.
libs(lucid)
lucid::vc(m1)
}
Run the code above in your browser using DataLab