Build data and AI skills | 50% off

Last chance! 50% off unlimited learning

Sale ends in


gtsummary (version 1.2.1)

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

Description

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

Usage

# S3 method for tbl_uvregression
bold_p(x, t = 0.05, q = FALSE, ...)

Arguments

x

Object created using tbl_uvregression function

t

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

q

Logical argument. When TRUE will bold the q-value column rather than the p-values. Default is FALSE.

...

Not used

Value

A tbl_uvregression 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_stack, inline_text.tbl_uvregression, modify_header, sort_p.tbl_uvregression, tbl_merge, tbl_stack, tbl_uvregression

Examples

Run this code
# NOT RUN {
tbl_uvglm_bold_p_ex <-
  trial %>%
  dplyr::select(age, marker, response, grade) %>%
  tbl_uvregression(
    method = glm,
    y = response,
    method.args = list(family = binomial),
    exponentiate = TRUE
  ) %>%
  bold_p(t = 0.25)
# }

Run the code above in your browser using DataLab