powered by
fmt_table1
The adjustments to the p-values is performed with stats::p.adjust. The default method for correction is false discovery rate ("fdr")
stats::
p.adjust
"fdr"
# S3 method for fmt_table1 add_q(x, method = "fdr", pvalue_fun = fmt_pvalue, ...)
table1 object
table1
character argument. Methods from stats::p.adjust are accepted. Default is method = fdr.
method = fdr
function for rounding/formatting p-values. Default is fmt_pvalue.
fmt_pvalue
further arguments passed to or from other methods
# NOT RUN { trial %>% fmt_table1(by = "trt") %>% add_comparison() %>% add_q() # }
Run the code above in your browser using DataLab