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