View source: R/treatment_effect.R
| causalEffect-class | R Documentation |
causalEffect class
causalEffect constructor function
causalEffect(data, causalWeights, model.outputs, augment.estimate, call)
data |
an object of class dataHolder |
causalWeights |
an object of class causalWeights |
model.outputs |
Outputs of the estimate_model() function |
augment.estimate |
Is the estimate to be the augmented (doubly robust) estimator? TRUE/FALSE |
call |
the call used to calculate the treatment effects |
The variables in slot augmentedData are
weights: The causalWeights targeting the causal estimand.
y_obs: The vector of the observed outcomes for each observation
y_0: The outcome under the control condition. Missingness respects the design of the experiment. i.e., Y(0) | Z = 1 = NA.
y_hat_0: The conditional mean outcome under the control condition. Estimated from a model.
y_hat_1: The conditional mean outcome under the treatment condition. Estimated from a model.
x: The columns denoting the covariates.
z: The treatment indicator.
The slot fit is a list with slots control, treated, and overall_sample. Control and treated will be filled if estimate.separately is TRUE in estimate_effect. overall_sample will be filled if estimate.separately is FALSE.
an object of class causalEffect
estimateThe estimated treatment effect.
estimandThe estimand of interest
weightsThe weights as an object of class causalWeights
augmentedDataThe data as a data.frame with variables weights, y_obs, y_0, y_1, y_hat_0, y_hat_1, x, and z. See details for more info.
fitThe fitted model if present. See details.
callThe call from the estimate_effect() function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.