Skip to contents

This helper function takes in a model in its `formula` format and returns a list comprising of various information, including the fitted model as an R object.

Usage

process_model_formula(model, data)

Arguments

model

The model object as a formula or fitted glm.

data

A data frame used for fitting the model.

Value

A list containing the fitted model, model formula, response variable name, and confounder names.