Learn R Programming

gtsummary (version 0.1.0)

bold_p.fmt_uni_regression: Bold or unbold p-values for fmt_uni_regression objects in Rmarkdown

Description

Bold or unbold p-values for fmt_uni_regression objects in Rmarkdown

Usage

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

Arguments

x

fmt_uni_regression object

t

Determines the threshold below which p-values get bolded. Default is 0.05.

q

logical argument. When TRUE will bold or unbold the q-value column rather than the p-values

...

further arguments passed to or from other methods

Examples

Run this code
# NOT RUN {
trial %>%
  fmt_uni_regression(
    method = "lm",
    y = "age"
  ) %>%
  bold_p(t = 0.20)
# }

Run the code above in your browser using DataLab