The adjustments to the p-values is performed with stats::p.adjust. The default method for correction is false discovery rate ("fdr")

# S3 method for fmt_uni_regression
add_q(x, method = "fdr", ...)

Arguments

x

table1 object

method

character argument. Methods from stats::p.adjust are accepted. Default is method = fdr.

...

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__
trial %>% fmt_uni_regression( method = "lm", y = "age" ) %>% add_global() %>% add_q()
#> #> Variable N Coefficient 95% CI p-value q-value #> Treatment Randomization 192 0.3 0.8 #> Drug Ref. #> Placebo -2.03 -6.13, 2.08 #> Marker Level, ng/mL 184 0.59 -1.89, 3.06 0.6 0.8 #> T Stage 192 0.5 0.8 #> T1 Ref. #> T2 2.05 -3.78, 7.88 #> T3 4.46 -1.56, 10.5 #> T4 3.33 -2.17, 8.83 #> Grade 192 0.3 0.8 #> I Ref. #> II 1.34 -3.78, 6.45 #> III 4.03 -0.84, 8.90 #> Tumor Response 183 -0.26 -4.53, 4.01 >0.9 >0.9