Learn R Programming

NetRep (version 1.0.2)

permp: Exact permutation p-values wrapper

Description

Wrapper for permp from the statmod library, which can crash if FORTRAN libraries are not properly linked.

Usage

permp(x, nperm, ...)

Arguments

x
number of permutations that yielded test statistics at least as extreme as the observed data. May be a vector or an array of values.
nperm
total number of permutations performed.
...
other arguments to pass topermp.

Value

vector or array of p-values, of same dimensions as x.

Details

In the case permp fails, the wrapper will fall back to a slightly more conservative biased estimator: (1+x)/(1+nPerm).