coef.causalEffect {causalOT}R Documentation

Extract treatment effect estimate

Description

Extract treatment effect estimate

Usage

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

Arguments

object

An object of class causalEffect

...

Not used

Value

A number corresponding to the estimated treatment effect

Examples

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

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

all.equal(coef(tx_eff), c(estimate = tx_eff@estimate))

[Package causalOT version 1.0.2 Index]