fmt_table1
object to account for
multiple comparisons in Rmarkdownadd_q.fmt_table1.Rd
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_table1 add_q(x, method = "fdr", pvalue_fun = fmt_pvalue, ...)
x |
|
---|---|
method | character argument. Methods from
|
pvalue_fun | function for rounding/formatting p-values. Default is |
... | further arguments passed to or from other methods |
#> #> Variable Drug Placebo p-value q-value #> N = 107 N = 93 #> Age, yrs 47 (39, 58) 46 (36, 54) 0.3 0.4 #> Unknown 3 5 #> Marker Level, ng/mL 0.61 (0.22, 1.20) 0.72 (0.22, 1.63) 0.4 0.4 #> Unknown 4 4 #> T Stage 0.13 0.3 #> T1 25 (23%) 26 (28%) #> T2 26 (24%) 23 (25%) #> T3 29 (27%) 13 (14%) #> T4 27 (25%) 31 (33%) #> Grade 0.3 0.4 #> I 38 (36%) 29 (31%) #> II 34 (32%) 24 (26%) #> III 35 (33%) 40 (43%) #> Tumor Response 52 (51%) 30 (33%) 0.017 0.086 #> Unknown 6 3