vcov.causalEffect {causalOT}R Documentation

Get the variance of a causalEffect

Description

Get the variance of a causalEffect

Usage

## S3 method for class 'causalEffect'
vcov(object, ...)

Arguments

object

An object of class causalEffect

...

Passed on to the sandwich estimator if there is a model fit that supports one

Value

The variance of the treatment effect as a matrix

Examples

# set-up data
set.seed(1234)
data <- Hainmueller$new()
data$gen_data()

# calculate quantities
weight <- calc_weight(data, estimand = "ATT", method = "Logistic")
tx_eff <- estimate_effect(causalWeights = weight)

vcov(tx_eff)

[Package causalOT version 1.0.2 Index]