Specify how missing values will be represented in the printed table.
By default, a blank space is printed for all NA
values.
Arguments
- x
(
gtsummary
)
A gtsummary object- symbol
(
string
)
string indicating how missing values are formatted.- columns
(
tidy-select
)
columns to add missing symbol.- rows
(predicate
expression
)
Predicate expression to select rows inx$table_body
. Review rows argument details.
Examples
# Use the abbreivation "Ref." for reference rows instead of the em-dash
lm(marker ~ trt, data = trial) |>
tbl_regression() |>
modify_missing_symbol(
symbol = "Ref.",
columns = c(estimate, conf.low, conf.high),
rows = reference_row == TRUE
)
Characteristic
Beta
95% CI
p-value
Abbreviation: CI = Confidence Interval