Learn R Programming

causalOT (version 1.0.2)

vcov.causalEffect: Get the variance of a causalEffect

Description

Get the variance of a causalEffect

Usage

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

Value

The variance of the treatment effect as a matrix

Arguments

object

An object of class causalEffect

...

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab