bold_p | R Documentation |
Bold values below a chosen threshold (e.g. <0.05) in a gtsummary tables.
bold_p(x, t = 0.05, q = FALSE)
x |
( |
t |
(scalar |
q |
(scalar |
Daniel D. Sjoberg, Esther Drill
# Example 1 ----------------------------------
trial |>
tbl_summary(by = trt, include = c(response, marker, trt), missing = "no") |>
add_p() |>
bold_p(t = 0.1)
# Example 2 ----------------------------------
glm(response ~ trt + grade, trial, family = binomial(link = "logit")) |>
tbl_regression(exponentiate = TRUE) |>
bold_p(t = 0.65)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.