| tl_auto_interactions | R Documentation |
Find important interactions automatically
tl_auto_interactions(
data,
formula,
top_n = 3,
min_r2_change = 0.01,
max_p_value = 0.05,
exclude_vars = NULL
)
data |
A data frame containing the data |
formula |
A formula specifying the base model without interactions |
top_n |
Number of top interactions to return |
min_r2_change |
Minimum change in R-squared to consider |
max_p_value |
Maximum p-value for significance |
exclude_vars |
Character vector of variables to exclude from interaction testing |
A tidylearn model with important interactions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.