Run a conditional-independence test.
run_test(test, x, y, z = character())A named list list(statistic, p_value, dof, effect_size); absent
fields are NULL.
df <- data.frame(A = sample(0:1, 80, TRUE), B = sample(0:1, 80, TRUE))
run_test(chi_squared(dataset(df)), "A", "B")
#> $statistic
#> [1] 0
#>
#> $p_value
#> [1] 1
#>
#> $dof
#> [1] 1
#>
#> $effect_size
#> [1] 0
#>