ate: Calculating average treatment effect

View source: R/functions_stats.R

ateR Documentation

Calculating average treatment effect

Description

Returns difference in means between exposures b and a (as b - a), coded as 1 and -1, respectively.

Usage

ate(Z, Y)

Arguments

Z

The treatment vector. Entries of Z are 1 or -1, indicating that under this treatment, individual is exposed to b or a

Y

The outcome vector

Value

The differenence in means between exposure contrasts b and a.


dpuelz/CliqueRT documentation built on Jan. 6, 2023, 11:20 p.m.