# NOT RUN {
set.seed(123)
library(dplyr)
# linear mixed effects model
grouped_tidy(
data = mutate(MASS::Aids2, interval = death - diag),
grouping.vars = sex,
..f = lme4::lmer,
formula = interval ~ age + (1 | status),
control = lme4::lmerControl(optimizer = "bobyqa"),
tidy.args = list(conf.int = TRUE, conf.level = 0.99)
)
# }
Run the code above in your browser using DataLab