get_group_compare: Test each variable in a df for multiple groups

get_group_compareR Documentation

Test each variable in a df for multiple groups

Description

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

Usage

get_group_compare(df, grouping, raw = F, format = T, paired = F)

Arguments

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

Value

A html table for simple univariate tests


JiyueQin/tidyreport documentation built on Nov. 24, 2024, 9:24 a.m.