50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

NPC (version 1.1.0)

StudentsT:

Student's T Statistic

Description

Calculates the T statistic of the difference between treated and control. The result is intended to be used as a test statistic in a permutation test.

Usage

StudentsT(y, tr, tl, ...)

Arguments

y
Response variable (vector)
tr
Treatment variable (vector)
tl
The level of treatment variable (e.g., "treated" or 1) that indicates treated observations
...
Additional arguments (included for compatibility but ignored)

Value

A scalar test statistic

Details

As Chung and Romano (2013) show, using the studentized difference of means as a permutation test statistic yields an asymptotically valid test of the "weak null" of mean equality between groups.

References

Chung, E. and Romano, J. P. (2013) Exact and asymptotically robust permutation tests. Annals of Statistics, 41, 484-507.