get_group_compare | R Documentation |
This function generates wilcoxon rank rum test(for 2 groups) or KW test(for more than 2 groups) for every continuous variable and Chisq test(or Fisher test) for each categorical variable
get_group_compare(df, grouping, raw = F, format = T, paired = F)
df |
A dataframe |
grouping |
character, the column to separate the data into two subsets |
raw |
logical, if you want to get table output, default is F |
format |
logical, format = T outputs a formatted table, default is T |
paired |
logical, paired=T uses wilcoxon signed rank tests, default is F |
A html table for simple univariate tests
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.