causalEffect-class {causalOT}R Documentation

causalEffect class

Description

causalEffect class

causalEffect constructor function

Usage

causalEffect(data, causalWeights, model.outputs, augment.estimate, call)

Arguments

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

Details

The variables in slot augmentedData are

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.

Value

an object of class causalEffect

Slots

estimate

The estimated treatment effect.

estimand

The estimand of interest

weights

The weights as an object of class causalWeights

augmentedData

The 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.

fit

The fitted model if present. See details.

call

The call from the estimate_effect() function.


[Package causalOT version 1.0.2 Index]