Bold or unbold p-values for fmt_uni_regression objects in Rmarkdown

# 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

trial %>% fmt_uni_regression( method = "lm", y = "age" ) %>% bold_p(t = 0.20)
#> #> Variable N Coefficient 95% CI #> Treatment Randomization 192 #> Drug Ref. #> Placebo -2.03 -6.13, 2.08 0.3 #> Marker Level, ng/mL 184 0.59 -1.89, 3.06 0.6 #> T Stage 192 #> T1 Ref. #> T2 2.05 -3.78, 7.88 0.5 #> T3 4.46 -1.56, 10.5 __0.15__ #> T4 3.33 -2.17, 8.83 0.2 #> Grade 192 #> I Ref. #> II 1.34 -3.78, 6.45 0.6 #> III 4.03 -0.84, 8.90 __0.10__ #> Tumor Response 183 -0.26 -4.53, 4.01 >0.9