gt_posterior_compare: Create a gt table comparing posteriors

Description Usage Arguments Details Value

View source: R/gt_posterior.R

Description

Create a gt table comparing posteriors. Usually from quap, brm and inla.

Usage

1
2
3
4
5
6
7
8
9
gt_posterior_compare(
  dfs,
  var_df = names(dfs)[1],
  var_col = "var",
  labs = list(title = "Posterior Summary Comparison", subtitle = "Practice"),
  .data_color = "mintcream",
  .tab_options = NULL,
  digits = 2L
)

Arguments

dfs

List of dataframes with posterior summaries.

var_df

Name of the summary to use as a reference for variable names.

var_col

Name of the column with the variables.

labs

List with the following items

.data_color

Data color used by gt::data_color()

.tab_options

List of tab_options with the following defaults

"data"

"mintcream"

"heading.background.color"

"darkslategray"

"heading.title.font.weight"

"bold"

"heading.subtitle.font.weight"

"bold"

"column_labels.background.color"

"seashell"

"column_labels.font.weight"

"bold"

"stub.background.color"

"seashell"

digits

Integer. Digits used to format data numbers.

Details

The list of summaries must meet these conditions

Value

gt table of posterior summary comparison


FrankLef/eflRethinking documentation built on Dec. 17, 2021, 8:30 p.m.