estimate_ps_glmnet: a function to estimate a propensity score using logistic regression

estimate_ps_glmnet(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