From 7d41479fbbb03c72870769e9cbf94718ca01f9c2 Mon Sep 17 00:00:00 2001 From: Harpreet Kaur Date: Mon, 19 Aug 2024 14:48:24 -0700 Subject: [PATCH] random statement changes --- chapters/lattice-design.qmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chapters/lattice-design.qmd b/chapters/lattice-design.qmd index f86c022..0fbacb3 100644 --- a/chapters/lattice-design.qmd +++ b/chapters/lattice-design.qmd @@ -112,7 +112,9 @@ summary(m1) ```{r, eval=FALSE} ## lme not working for this, need help in fixing it m1 <- lme(yield ~ gen, - random = ~ 1|rep + 1|rep:row + 1|rep:col, + random = list(rep = ~ 1, rep|row = ~1, rep|col = ~1), + #random = list (~1|rep, ~1|rep:row, ~1|rep:col), + # random = ~ 1|rep + 1|rep:row + 1|rep:col, data = dat, na.action = na.exclude) ```