Exam8.4 | R Documentation |
Exam8.4 Multifactor treatment and Multilevel design structures
Muhammad Yaseen (myaseen208@gmail.com)
Adeela Munawar (adeela.uaf@gmail.com)
Stroup, W. W. (2012). Generalized Linear Mixed Models: Modern Concepts, Methods and Applications. CRC Press.
DataSet8.4
data(DataSet8.4)
DataSet8.4$block <- factor(x = DataSet8.4$block)
DataSet8.4$a <- factor(x = DataSet8.4$a)
DataSet8.4$b <- factor(x = DataSet8.4$b)
library(lmerTest)
Exam8.4lmer <-
lmer(
y ~ a + b %in% a +
(1|block) + (1|block:a) + (1|block:b)
, data = DataSet8.4
)
anova(Exam8.4lmer, ddf = "Kenward-Roger")
library(emmeans)
emmeans(object = Exam8.4lmer, specs = ~a|b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.