View source: R/bcat_reg_table.R
| bcat_reg_table | R Documentation |
Produce publication-quality regression tables with UC styling.
Wraps modelsummary::modelsummary() with UC defaults for
formatting, colors, and statistical conventions.
bcat_reg_table(
models,
stars = c(`*` = 0.1, `**` = 0.05, `***` = 0.01),
se_type = "default",
coef_rename = NULL,
gof_map = c("nobs", "r.squared", "adj.r.squared", "statistic"),
caption = NULL,
footer = NULL,
font_size = 12,
header_bg_color = palette_UC[["UC Red"]],
header_txt_color = palette_UC[["White"]],
striped = TRUE,
doc_type = NULL,
...
)
models |
A model object, or a list of model objects. Supports |
stars |
Named numeric vector for significance stars. Set to |
se_type |
Character. Standard error type passed to |
coef_rename |
Named character vector to rename coefficients.
If |
gof_map |
Character vector of goodness-of-fit statistics to include.
Default: |
caption |
Character. Table caption. |
footer |
Character. Table footnote. |
font_size |
Numeric. Font size. Default is 12. |
header_bg_color |
Background color for header. Default is UC Red. |
header_txt_color |
Text color for header. Default is white. |
striped |
Logical. Zebra striping? Default is TRUE. |
doc_type |
Character. Force output format. Auto-detected if NULL. |
... |
Additional arguments passed to |
A formatted table object.
Saannidhya Rawat
Other tables:
bcat_cor_table(),
bcat_fmt_style_table(),
bcat_sum_table()
# Single model
m1 <- lm(mpg ~ wt + hp, data = mtcars)
bcat_reg_table(m1)
# Compare models side-by-side
m2 <- lm(mpg ~ wt + hp + cyl, data = mtcars)
bcat_reg_table(list("Base" = m1, "Extended" = m2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.