# NOT RUN {
# for reproducibility
set.seed(123)
# categorical outcome; binomial family
groupedstats::grouped_glmer(
formula = Survived ~ Age + (Age | Class),
family = stats::binomial(link = "probit"),
data = dplyr::sample_frac(groupedstats::Titanic_full, size = 0.3),
grouping.vars = Sex
)
# }
Run the code above in your browser using DataLab