determine the appropriate test type given two variables
assign_test(data, var, var_summary_type, by_var, test, id)
input data set
categorical or continuous variable for which a test with by_var
is desired
summary_type from meta data
categorical variable
list of user defined statistical tests and corresponding variables
most appropriate test as text of the test function