A simple function to estimate a propensity score given the model and estimating approach supplied in a model_specification objects

estimate_ps(models, data, weights = NULL)

Arguments

models

A model_specification object

data

Source data

weights

A vector of observation weights

Value

A matrix of estimated propensity scores, one column for each treatment

Author

M. Alan Brookhart