T.dim: Computes the difference-in-means test statistic

Description Usage Arguments Details Value

Description

T.dim computes the average difference in outcomes between the units assigned to treatment k and those assigned to treatment l.

Usage

1
T.dim(W, Y, k, l, A = NULL)

Arguments

W

A vector representing the assignment of units to treatments (or exposures).

Y

A vector representing the vector of observed outcomes. Must be of the same length as W.

k

An integer. One of the treatments to be contrasted.

l

An integer. The other treatment to be contrasted.

A

This parameter is ignored.

Details

The value of A is ignored. The parameter is here to allow a unified treatment of test statistics by other functions.

Value

A scalar.


gwb/RGroupFormation documentation built on Sept. 13, 2020, 4:41 p.m.