tl_interaction_effects: Calculate partial effects based on a model with interactions

View source: R/interactions.R

tl_interaction_effectsR Documentation

Calculate partial effects based on a model with interactions

Description

Calculate partial effects based on a model with interactions

Usage

tl_interaction_effects(model, var, by_var, at_values = NULL, intervals = TRUE)

Arguments

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

Value

A data frame with marginal effects


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.