Learn R Programming

qbrms (version 1.0.1)

tab_model: Create HTML Table for qbrms Models with Enhanced Styling

Description

Generate APA-style HTML tables for qbrms model outputs with customizable styling options.

Usage

tab_model(
  ...,
  show.ci = TRUE,
  ci.lvl = 0.95,
  show.rope = FALSE,
  rope = c(-0.1, 0.1),
  show.p_sig = FALSE,
  show.pd = FALSE,
  show.bf = FALSE,
  digits = 2,
  title = "Model Results",
  file = NULL,
  CSS = NULL,
  dv.labels = NULL,
  pred.labels = NULL,
  show.intercept = TRUE,
  show.r2 = FALSE,
  show.icc = FALSE,
  show.nobs = TRUE,
  bootstrap = TRUE,
  table.style = "default",
  font.family = "system-ui, -apple-system, sans-serif",
  font.size = "14px",
  header.bg = "#f8f9fa",
  stripe.bg = "#f9f9f9",
  verbose = FALSE
)

Value

An object of class "qbrms_html_table" containing the HTML code

Arguments

...

One or more qbrms_fit objects to display in the table

show.ci

Logical; show credible intervals (default TRUE)

ci.lvl

Credible interval level (default 0.95)

show.rope

Logical; show ROPE analysis (default FALSE)

rope

Numeric vector c(lower, upper) for ROPE bounds

show.p_sig

Logical; show probability of practical significance (default FALSE)

show.pd

Logical; show probability of direction (default FALSE)

show.bf

Logical; show Bayes factors (default FALSE)

digits

Number of decimal places (default 2)

title

Character; table title

file

Character; file path to save HTML output (optional)

CSS

Character; custom CSS styling (optional)

dv.labels

Character vector of dependent variable labels

pred.labels

Named character vector for predictor labels

show.intercept

Logical; show intercept row (default TRUE)

show.r2

Logical; show R-squared if available (default FALSE)

show.icc

Logical; show ICC for mixed models (default FALSE)

show.nobs

Logical; show number of observations (default TRUE)

bootstrap

Logical; use Bootstrap CSS framework (default TRUE)

table.style

Character; table style theme. Options: "default", "minimal", "academic", "modern"

font.family

Character; CSS font family (default "system-ui")

font.size

Character; base font size (default "14px")

header.bg

Character; header background colour (default "#f8f9fa")

stripe.bg

Character; striped row background colour (default "#f9f9f9")

verbose

Logical; print progress (default FALSE)