t2p: Convert Test Statistics into P-Values

Description Usage Arguments Details Value Note Author(s) References

Description

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.

Usage

1
  t2p(T)

Arguments

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.

Details

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

Value

An array of p-values

Note

Derived from Pesarin and Salmaso's t2p function (http://www.wiley.com/legacy/wileychi/pesarin/supp/R_functions.zip).

Author(s)

Devin Caughey <devin.caughey@gmail.com>

References

Pesarin, Fortunato, and Luigi Salmaso. 2010. Permutation Tests for Complex Data. Chichester, UK: Wiley.


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

Related to t2p in NPC...