DiffSumObs:
Difference in the Number of Non-Missing Responses
Description
Calculates the difference in the number of non-missing responses between two groups of observations. The result is intended to be used as a test statistic in a permutation test.
Usage
DiffSumObs(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)