Description Usage Arguments Details Value Note Author(s) References
This function converts the permutation distribution of a test statistic into p-values, one for each permutation. The resulting array of p-values is suitable for nonparametric combination.
1 | t2p(T)
|
T |
A vector or array containing the distribution of a test statistic across permutations. If it is an array the first dimension must index permutations. |
For each permutation, the value of the test statistic is compared to its distribution across permutations. The (estimated) p-value for that permutation is the proportion of permutations
An array of p-values
Derived from Pesarin and Salmaso's t2p
function (http://www.wiley.com/legacy/wileychi/pesarin/supp/R_functions.zip).
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.