tab_smoothbp: Fixed-effects table for smoothbp_fit objects

View source: R/tab_model.R

tab_smoothbpR Documentation

Fixed-effects table for smoothbp_fit objects

Description

Collects posterior summaries from one or more smoothbp_fit objects and displays them in a single table with parameters on rows and models in columns. All parameters present in any model are shown; models that do not include a given parameter display a dash.

Usage

tab_smoothbp(
  ...,
  labels = NULL,
  digits = 2,
  fmt = c("mean [CI]", "mean (SD)"),
  show_rhat = FALSE
)

Arguments

...

One or more smoothbp_fit or smoothbp_ss_fit objects.

labels

Character vector of column headers, one per model. If NULL (default) the deparsed call names are used.

digits

Integer; number of decimal places (default 2).

fmt

Cell format: "mean [CI]" (default) shows mean and 95% credible interval; "mean (SD)" shows mean and posterior SD.

show_rhat

Logical; append \hat{R} to each cell (default FALSE).

Value

A gt_tbl object (or a knitr_kable if gt is not installed).

Examples

## Not run: 
tab_smoothbp(m.ep.pw1, m.wo.pw1, m.la.pw1,
             labels = c("Episodic", "Working", "Language"))

## End(Not run)

smoothbp documentation built on June 14, 2026, 9:06 a.m.