Learn R Programming

gtsummary (version 0.1.0)

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

Description

Bold or unbold p-values for fmt_regression objects in Rmarkdown

Usage

# S3 method for fmt_regression
bold_p(x, t = 0.05, ...)

Arguments

x

fmt_regression object

t

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

...

further arguments passed to or from other methods

Examples

Run this code
# NOT RUN {
lm(mpg ~ hp + am, mtcars) %>%
  fmt_regression() %>%
  bold_p()
# }

Run the code above in your browser using DataLab