process_model_formula {causens} | R 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.
[Package causens version 0.0.3 Index]