Skip to contents

Dispatches to lm(), survival::coxph(), or glm() based on family.

Usage

run_model(form, data, family = "gaussian", ...)

Arguments

form

A formula.

data

A data frame.

family

One of "gaussian", "cox", or "binomial".

...

Additional arguments passed to the model fitting function.

Value

A fitted model object.