Calculate partial effects based on a model with interactions
tl_interaction_effects(model, var, by_var, at_values = NULL, intervals = TRUE)A data frame with marginal effects
A tidylearn model object
Variable to calculate effects for
Variable to calculate effects by (interaction variable)
Named list of values at which to hold other variables
Logical; whether to include confidence intervals