Exam8.1 | R Documentation |
Exam8.1 Nested factorial structure
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.1
data(DataSet8.1)
DataSet8.1$block <- factor(x = DataSet8.1$block)
DataSet8.1$set <- factor(x = DataSet8.1$set)
DataSet8.1$trt <- factor(x = DataSet8.1$trt)
library(lmerTest)
Exam8.1Lmer <- lmer(y ~ set + trt %in% set + (1|set/block), DataSet8.1)
summary(Exam8.1Lmer)
anova(Exam8.1Lmer)
library(emmeans)
emmeans(object = Exam8.1Lmer, specs = ~trt|set)
contrast(emmeans(object = Exam8.1Lmer, specs = ~trt|set), method = "pairwise", by = "set")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.