Description Usage Arguments Value Author(s) References
This function calculates a test statistic analogous to the difference of means, but adjusted to accommodate missing responses. The result is intended to be used as a test statistic in a permutation test. Under the assumption that the data are missing completely at random, the resulting permutation test is "nearly" exact under the null of distributional equality of the observed responses (Pesarin and Salmaso 2010, 234–44).
1 | DiffSumWithNA(y, tr, tl, ...)
|
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) |
A scalar test statistic
Devin Caughey <devin.caughey@gmail.com>
Pesarin, Fortunato, and Luigi Salmaso. 2010. Permutation Tests for Complex Data. Chichester, UK: Wiley.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.