Provides an interface to visualize the model results with gtsummary package in table format. check https://www.danieldsjoberg.com/gtsummary/articles/tbl_regression.html#customize-output to see possible output customization.
Arguments
- breg
A regression object with results (must pass
assert_breg_obj_with_results()
).- idx
Index or names (focal variables) of the model(s).
- ...
Arguments passing to
gtsummary::tbl_regression()
exceptsx
.- tab_spanner
(
character
)
Character vector specifying the spanning headers. Must be the same length astbls
. The strings are interpreted withgt::md
. Must be same length astbls
argument. Default isNULL
, and places a default spanning header. IfFALSE
, no header will be placed.
See also
Other br_show:
br_show_fitted_line()
,
br_show_fitted_line_2d()
,
br_show_forest()
,
br_show_forest_ggstats()
,
br_show_forest_ggstatsplot()
,
br_show_risk_network()
,
br_show_table()
Examples
if (rlang::is_installed("gtsummary")) {
m <- br_pipeline(mtcars,
y = "mpg",
x = colnames(mtcars)[2:4],
x2 = "vs",
method = "gaussian"
)
br_show_table_gt(m)
}
Beta
95% CI
p-value
Beta
95% CI
p-value
Beta
95% CI
p-value
Abbreviation: CI = Confidence Interval