Skip to contents

Looks up the (level_a, level_b) combination and returns the right default test (Stevens-1946 hierarchy).

Usage

morie_recommended_pair_test(tax_a, tax_b)

Arguments

tax_a, tax_b

Two morie_variable_taxonomy objects.

Value

Character scalar — recommended test name.

Examples

tax <- structure(
  list(dataset_name = "X", column_name = "colour", level = "nominal",
       cardinality = "unknown", role = "covariate", cross_year_safe = TRUE),
  class = c("morie_variable_taxonomy", "list"))
morie_recommended_pair_test(tax, tax)
#> [1] "chi-square (or Fisher exact if small) + Cramer's V"