Bold the p-values at or below a threshold, e.g. <0.05, in a table with
a p.value column.
Arguments
- x
(
ltsummary)
An ltsummary object with ap.valuecolumn, e.g. afteradd_p().- t
(
scalar numeric)
Threshold; p-values at or below it are shown in bold. Default is0.05.- q
(
scalar logical)
WhenTRUE, bold theq.valuecolumn instead ofp.value. Default isFALSE.
Examples
# Example 1 ----------------------------------
trial |>
tbl_summary(by = trt, include = c(response, marker, age), missing = "no") |>
add_p() |>
bold_p(t = 0.1)