Description Usage Arguments Examples
Makes index of factor variables requiring indent from
fmt_regression
objects in Rmarkdown
1 2 | ## S3 method for class 'fmt_regression'
indent_key(x, ...)
|
x |
|
... |
further arguments passed to or from other methods |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(lme4)
mod_glmer <- glmer(am ~ hp + +wt + factor(cyl) + (1 | gear), mtcars, family = binomial)
tglmer <- fmt_regression(mod_glmer, exponentiate = TRUE)
# In RMarkdown, knitting to HTML:
knitr::kable(as_tibble(tglmer),
row.names = FALSE,
caption = "Model Summary"
) %>%
kableExtra::kable_styling(
bootstrap_options = c("striped", "condensed"),
font_size = 11,
full_width = F
) %>%
kableExtra::add_indent(indent_key(tglmer)) %>%
kableExtra::footnote(general = "Model coefficients and p-values calculated using
generalized linear mixed model, with random intercept specified
as gear type.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.