T.studentized: Compute the stratified studentized test statistic.

Description Usage Arguments Details Value

Description

T.studentizedd computes the studentized difference in outcomes between untis assigned to treatment k and those assigned to treatment l, stratifying by values in A.

Usage

1
T.studentized(W, Y, k, l, A)

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

A vector representing the values to stratify on. Must be of the same length as A.

Details

The test statistic is described in Basse et al. (2020+).

Value

A scalar.


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