Variance-covariance matrix for a causatr result

Description

Returns the variance-covariance matrix of the intervention-specific marginal means (E[Y^a]) from a causatr_result object.

When by was used in contrast(), returns a named list of per-stratum vcov matrices keyed by stratum level.

Usage

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

Arguments

object A causatr_result object.
Currently unused.

Value

A named k x k matrix (k = number of interventions), or a named list of such matrices when by was used.

See Also

coef.causatr_result(), confint.causatr_result(), contrast()

Examples

library("causatr")

result <- contrast(fit, interventions = list(a1 = static(1), a0 = static(0)))
vcov(result)