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

NPC (version 1.1.0)

DiffMeans: Differences of Means Test Statistic

Description

Calculates the difference of means between two groups of observations. The result is intended to be used as a test statistic in a permutation test.

Usage

DiffMeans(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