Learn R Programming

gtsummary (version 1.2.0)

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

Description

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

Usage

# S3 method for tbl_stack
bold_p(x, ...)

Arguments

x

Object created using tbl_stack function

...

arguments passed to bold_p.*() method that matches the first object in the tbl_stack

Value

A tbl_stack object

Example Output

See Also

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

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

Examples

Run this code
# NOT RUN {
t1 <- tbl_regression(lm(age ~ response, trial))
t2 <- tbl_regression(lm(age ~ grade, trial))

bold_p_stack_ex <-
  tbl_stack(list(t1, t2)) %>%
  bold_p(t = 0.10)
# }

Run the code above in your browser using DataLab