Fit a propensity score model using a specified engine. fit_ps()
fits
a model on a single dataset and fit_ps_mi()
fits a model on each of
m
multiply imputed datasets.
fit_ps(formula, data, engine = "glm", ...) fit_ps_mi(formula, data, engine = "glm", ...)
formula | An object of class |
---|---|
data | A data frame containing the variables in the model.
For |
engine | The "engine" used to fit the propensity score model. Currently
limited to logistic regression fit with |
... | Additional arguments to pass to |
fit_ps()
returns an object of class fit_ps
with an element fit
containing
the underlying fitted model. fit_ps_mi()
returns an object of classfit_ps_mi
,
which is a list of fit_ps
objects.