View source: R/treatment_effect.R
vcov.causalEffect | R Documentation |
Get the variance of a causalEffect
## S3 method for class 'causalEffect'
vcov(object, ...)
object |
An object of class causalEffect |
... |
Passed on to the sandwich estimator if there is a model fit that supports one |
The variance of the treatment effect as a matrix
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.