Bold or unbold p-values for fmt_regression objects in Rmarkdown

# 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

lm(mpg ~ hp + am, mtcars) %>% fmt_regression() %>% bold_p()
#> #> N = 32 Coefficient 95% CI #> hp -0.06 -0.07, -0.04 __<0.001__ #> am 5.28 3.07, 7.48 __<0.001__