fit_models <- function(formula, data) {
fit.glmm <- lme4::glmer(formula,
data = data,
family = "poisson",
offset = log(tj))
sjPlot::tab_model(fit.glmm)
}
# example of how to use the function
# fit_models(formula = y ~ trt*post + (1|subject), data = df_epil)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.