detect_model_type: Detect if model is univariable or multivariable

View source: R/m2dt_utils.R

detect_model_typeR Documentation

Detect if model is univariable or multivariable

Description

Determines whether a model contains one predictor (univariable) or multiple predictors (multivariable) by analyzing coefficient names and factor structure. Handles interactions and random effects appropriately.

Usage

detect_model_type(model)

Arguments

model

Fitted model object.

Value

Character string: "Univariable" or "Multivariable".


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