Exam9.4: Example 9.4 from Generalized Linear Mixed Models: Modern...

Exam9.4R Documentation

Example 9.4 from Generalized Linear Mixed Models: Modern Concepts, Methods and Applications by Walter W. Stroup (p-288)

Description

Exam9.4 Relationship between BLUP and Fixed Effect Estimators

Author(s)

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Adeela Munawar (adeela.uaf@gmail.com)

References

  1. Stroup, W. W. (2012). Generalized Linear Mixed Models: Modern Concepts, Methods and Applications. CRC Press.

See Also

DataSet9.4

Examples

data(DataSet9.4)
DataSet9.4$a <- factor(x = DataSet9.4$a)
DataSet9.4$b <- factor(x = DataSet9.4$b)

library(lmerTest)
Exam9.4lmer <- lmer(y ~ a + (1|b) + (1|a/b), data = DataSet9.4)
summary(Exam9.4lmer)
library(emmeans)
emmeans(Exam9.4lmer, spec = ~a)


StroupGLMM documentation built on Oct. 2, 2024, 1:07 a.m.