process_model_formula: Process model formula

View source: R/process_model_formula.R

process_model_formulaR Documentation

Process model formula

Description

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.


causens documentation built on June 8, 2025, 10:03 a.m.