set_treatment | R Documentation |
This function specifies a treatment variable in the sequence of treatment variables that define the controlled direct effect of interest.
set_treatment(
object,
treat,
formula = NULL,
treat_type = "categorical",
eval_vals = NULL
)
object |
A |
treat |
Name of the treatment variable (not quoted). |
formula |
One-sided formula giving the covariates that are
pre-treatment to this treatment, but post-treatment to any previous
treatment. Unless overridden by the arguments to
|
treat_type |
A string indicating the type of variable this is.
Takes either the values |
eval_vals |
A numeric vector of values of this variable to
evaluate the controlled direct effecct. If |
An updated cde_estimator
with this information about the
treatment specified.
Matthew Blackwell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.