format_interaction_term: Format interaction term for display

View source: R/multifit.R

format_interaction_termR Documentation

Format interaction term for display

Description

Converts R's internal interaction term format (e.g., "treatmentDrug A:stageII") to a more readable format (e.g., "Treatment (Drug A) × Stage (II)").

Usage

format_interaction_term(term, labels = NULL)

Arguments

term

Character string of the interaction term from model coefficients.

labels

Optional named vector of labels for variable names.

Value

Formatted interaction term string.


summata documentation built on May 7, 2026, 5:07 p.m.