add_q.fmt_table1: Add a column of q values to 'fmt_table1' object to account...

Description Usage Arguments Examples

Description

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

Usage

1
2
3
## S3 method for class 'fmt_table1'
add_q(x, method = "fdr", pvalue_fun = fmt_pvalue,
  ...)

Arguments

x

table1 object

method

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

pvalue_fun

function for rounding/formatting p-values. Default is fmt_pvalue.

...

further arguments passed to or from other methods

Examples

1
trial %>% fmt_table1(by = "trt") %>% add_comparison() %>% add_q()

ddsjoberg/gtsummary-v0.1 documentation built on June 4, 2019, 7:48 a.m.