ols_get_interaction_terms: Interaction terms

View source: R/ols-model-info.R

ols_get_interaction_termsR Documentation

Interaction terms

Description

Returns interaction terms present in the model.

Usage

ols_get_interaction_terms(model)

Arguments

model

An object of class lm.

Value

Character vector or NULL.

Examples

model <- lm(mpg ~ wt + cyl * hp * disp + gear * drat, data = mtcars)
ols_get_interaction_terms(model)


olsrr documentation built on Nov. 18, 2026, 5:07 p.m.