| tl_interaction_effects | R Documentation |
Calculate partial effects based on a model with interactions
tl_interaction_effects(model, var, by_var, at_values = NULL, intervals = TRUE)
model |
A tidylearn model object |
var |
Variable to calculate effects for |
by_var |
Variable to calculate effects by (interaction variable) |
at_values |
Named list of values at which to hold other variables |
intervals |
Logical; whether to include confidence intervals |
A data frame with marginal effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.