View source: R/test_statistic_table1.R
statistic_table1 | R Documentation |
This function allows you to add a column calculating the test statistic to the table1 function. The calculation is based on one-way ANOVA for continuous variables and chi-squared for categorical variables.
statistic_table1(x, ...)
x |
This input is not necessary if used as an added function in the extra.cols argument in table1. The input will automatically be detected by the function. |
data("sleep") table1::table1(~ extra | group, data = sleep, extra.cols = c(`Test Statistic`= statistic_table1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.