Learn R Programming

gtsummary (version 0.1.0)

assign_test: determine the appropriate test type given two variables

Description

determine the appropriate test type given two variables

Usage

assign_test(data, var, var_summary_type, by_var, test, id)

Arguments

data

input data set

var

categorical or continuous variable for which a test with by_var is desired

var_summary_type

summary_type from meta data

by_var

categorical variable

test

list of user defined statistical tests and corresponding variables

Value

most appropriate test as text of the test function