# NOT RUN {
data(Orthodont, package = "nlme")
models <- list(
model1 <- lmer(formula = distance ~ age + Sex + (1 | Subject) + age:Sex,
data = Orthodont),
model2 <- lmer(formula = distance ~ age + Sex + (1 | Subject),
data = Orthodont),
model3 <- lmer(formula = distance ~ age + (1 | Subject),
data = Orthodont),
model4 <- lmer(formula = distance ~ Sex + (1 | Subject),
data = Orthodont))
foo <- modelAvg(models = models)
foo
# }
Run the code above in your browser using DataLab