DiffSumObs: Difference in the Number of Non-Missing Responses

Description Usage Arguments Value Note Author(s)

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

1
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)

Value

A scalar test statistic

Note

May not behave well if the treatment variable contains missing values.

Author(s)

Devin Caughey <devin.caughey@gmail.com>


NPC documentation built on May 2, 2019, 5:07 a.m.