Exam2.B.6 | R Documentation |
Exam2.B.6 is related to multi batch regression data assuming different forms of linear models keeping batch effect random.
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.
Table1.2
#-----------------------------------------------------------------------------------
## Nested Model with no intercept
#-----------------------------------------------------------------------------------
data(Table1.2)
Table1.2$Batch <- factor(x = Table1.2$Batch)
library(nlme)
Exam2.B.6fm1 <- lme(
fixed = Y ~ X
, data = Table1.2
, random = list(Batch = pdDiag(~1), X = pdDiag(~1))
, method = c("REML", "ML")[1]
)
Exam2.B.6fm1
library(broom.mixed)
tidy(Exam2.B.6fm1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.