vcov.ate: Variance-Covariance Matrix for the Average Treatment Effect.

View source: R/vcov.ate.R

vcov.ateR Documentation

Variance-Covariance Matrix for the Average Treatment Effect.

Description

Variance covariance matrix for the estimated average treatment effect.

Usage

## S3 method for class 'ate'
vcov(
  object,
  contrasts = NULL,
  times = NULL,
  estimator = NULL,
  type = NULL,
  ...
)

Arguments

object

A ate object, i.e. output of the ate function.

contrasts

[character vector] levels of the treatment variable for which the variance-covariance matrix should be assessed. Default is to consider all levels.

times

[numeric vector] The timepoints at which the variance-covariance matrix should be displayed. Default is to consider all timepoints.

estimator

[character] The type of estimator relative to which the variance-covariance matrix should be displayed.

type

[character] should the variance-covariance matrix w.r.t. the average risk per treatment be displayed ("meanRisk"), or the difference in average risk between any two pairs of treatments ("diffRisk"), or the ratio in average risk between any two pairs of treatments ("ratioRisk").

...

Not used. For compatibility with the generic method.

Value

A numeric matrix.

Author(s)

Brice Ozenne broz@sund.ku.dk


tagteam/riskRegression documentation built on Oct. 19, 2024, 7:43 p.m.