Test for significant interactions between variables
tl_test_interactions(
data,
formula,
var1 = NULL,
var2 = NULL,
all_pairs = FALSE,
categorical_only = FALSE,
numeric_only = FALSE,
mixed_only = FALSE,
alpha = 0.05
)A data frame with interaction test results
A data frame containing the data
A formula specifying the base model without interactions
First variable to test for interactions
Second variable to test for interactions (if NULL, tests var1 with all others)
Logical; whether to test all variable pairs
Logical; whether to only test categorical variables
Logical; whether to only test numeric variables
Logical; whether to only test numeric-categorical pairs
Significance level for interaction tests