current.asr <- asreml(fixed = log.Turbidity ~ Benches + Sources + Type + Species +
Sources:Type + Sources:Species +
Sources:xDay + Species:xDay + Species:Date,
data = Runoff.longi.dat, keep.order = TRUE)
predictions <- predict(current.asr, class="Species:Date:xDay",
present=c("Type","Species","Sources"),
levels=list(xDay=unique(Runoff.longi.dat$xDay)))$predictions$pvals
predictions <- predictions[predictions$est.status == "Estimable",]
predictionplot.asreml(classify="Species:Date:xDay", diffs$predictions, current.asrt$wald.tab,
x.num = "xDay", x.fac = "Date",
x.title = "Days since first observation",
y.title = "Predicted log(Turbidity)",
present = c("Type","Species","Sources"))
diffs <- predictparallel.asreml(classify="Species:Date:xDay",
present=c("Type","Species","Sources"),
asreml.obj = current.asr,
x.num = "xDay", x.fac = "Date",
x.pred.values=sort(unique(Runoff.longi.dat$xDay)),
x.plot.values=c(0,28,56,84))
predictionplot.asreml(diffs$predictions, current.asrt$wald.tab,
x.num = "xDay", x.fac = "Date",
x.title = "Days since first observation",
y.title = "Predicted log(Turbidity)"))Run the code above in your browser using DataLab