Learn R Programming

gtsummary (version 1.2.1)

bold_p.tbl_regression: Bold significant p-values or q-values

Description

Bold values below a chosen threshold (e.g. <0.05) in tbl_regression tables.

Usage

# S3 method for tbl_regression
bold_p(x, t = 0.05, ...)

Arguments

x

Object created using tbl_regression function

t

Threshold below which values will be bold. Default is 0.05.

...

Not used

Value

A tbl_regression object

Example Output

See Also

Other tbl_regression tools: add_global_p.tbl_regression, add_nevent.tbl_regression, bold_italicize_labels_levels, bold_p.tbl_stack, inline_text.tbl_regression, modify_header, sort_p.tbl_regression, tbl_merge, tbl_regression, tbl_stack

Examples

Run this code
# NOT RUN {
tbl_lm_bold_p_ex <-
  glm(response ~ trt + grade, trial, family = binomial(link = "logit")) %>%
  tbl_regression(exponentiate = TRUE) %>%
  bold_p()
# }

Run the code above in your browser using DataLab