Description Usage Arguments Examples
Adds p-values to the output comparing values across groups
1 2 | add_comparison(x, test = NULL, pvalue_fun = fmt_pvalue,
id = x$inputs$id)
|
x |
object with class |
test |
user defined list of statistical tests provided as a named
character vector with variables as names and test functions as values.,
e.g. |
pvalue_fun |
function for rounding/formatting p-values. Default is |
id |
Character vector of an ID or grouping variable. Summary statistics
will not be printed for this column, but they may be used in subsequent
functions. For example, the ID column may be used in |
1 | trial %>% fmt_table1(by = "trt") %>% add_comparison()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.