model_specification
objectidentify_treatment.Rd
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, ...)
The name of variable in the input data describing treatment. This should be supplied as an expression not a character string.
A formula object that will be used to build the treatment model. Default to a null model, ~1.
An optional argument providing an estimator function for the treatment model.
Additional arguments to be passed to estimating function.
A object that can be used by specify_models
to add
treatment informatfon to the data description function.