estimate_ps_glm: a function to estimate a propensity score using glm logistic regression

estimate_ps_glm(models, data, weights = NULL, args = NULL)

Arguments

models

A model_specification object

data

Source data

weights

A vector of observation weights

args

Additional argument to glmnet

Value

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

Author

M. Alan Brookhart