format_table: Assemble table data from a list of model records

View source: R/format_table.R

format_tableR Documentation

Assemble table data from a list of model records

Description

Internal; called by stargazer.

Usage

format_table(
  records,
  covariate.labels = NULL,
  coef.rename = NULL,
  omit = NULL,
  keep = NULL,
  omit.stat = NULL,
  digits = 3L,
  star.cutoffs = c(0.1, 0.05, 0.01),
  star.char = c("*", "**", "***"),
  no.space = FALSE,
  obs.label = "Observations"
)

Arguments

records

List of model_record objects from extract_model.

covariate.labels

Character vector of display names for covariates, applied positionally after omit/keep filtering.

coef.rename

Named character vector mapping raw coefficient names to display names before the union is computed (e.g. c("year::2004" = "t = -2")). Applied to all models.

omit

Character vector of regex patterns; matching covariates are dropped.

keep

Character vector of regex patterns; only matching covariates are kept (applied after omit).

omit.stat

Character vector of stat identifiers to suppress.

digits

Integer; decimal places for coefficients and SEs.

star.cutoffs

Numeric vector of p-value thresholds (ascending).

star.char

Character vector of star strings.

no.space

Logical; suppress blank spacer rows.

obs.label

Character; label for the Observations row. Default "Observations"; set to "\\textit\{N\}" for QJE style.


stargazer2 documentation built on July 17, 2026, 5:08 p.m.