dot-fit_multi_model: Fit multivariate Regression Model (Internal)

.fit_multi_modelR Documentation

Fit multivariate Regression Model (Internal)

Description

Fits a regression model based on the selected approach.

Usage

.fit_multi_model(data, outcome, exposures, approach)

Arguments

data

A 'data.frame' with outcome and exposures.

outcome

A string. Name of the outcome variable.

exposures

A string or character vector of predictor(s).

approach

A string specifying the regression approach. One of '"logit"', '"log-binomial"', '"poisson"', '"linear"', '"robpoisson"', or '"negbin"'.

Value

A fitted model object ('glm', 'lm', 'riskratio', or 'negbin') or 'NULL' if fitting fails.


gtregression documentation built on Aug. 18, 2025, 5:23 p.m.