identify_treatment is a data descriptor function used to identify the treatment variable and potentially supply a formula and estimation function.

identify_treatment(name, formula = ~1, estimator = estimate_ps_glmnet, ...)

Arguments

name

The name of variable in the input data describing treatment. This should be supplied as an expression not a character string.

formula

A formula object that will be used to build the treatment model. Default to a null model, ~1.

estimator

An optional argument providing an estimator function for the treatment model.

...

Additional arguments to be passed to estimating function.

Value

A object that can be used by specify_models to add treatment informatfon to the data description function.

Author

M. Alan Brookhart