Specifies the functional form and estimation engine for a treatment
previously specified by set_treatment().
treat_model(object, formula, engine, separate = TRUE, include_past = TRUE, ...)A cde_estimator object that contains output from a
previous call to set_treatment().
A formula specifying the design matrix of the
covariates. Passed to fitting engine or used with
stats::model.frame() and stats::model.matrix() to create the
design matrix for fitting engines that do not take formulas.
String indicating the name of the fitting engine.
Logical indicating whether the fitting algorithm should be applied separately to each history of the treatment variables up to this point (default) or not.
A logical value where TRUE indicates that
formulas passed to previous treat_model calls should be appended
to the formula given.
Other arguments to be passed to the engine algorithms.
Matthew Blackwell