blockPermute {flintyR} | R Documentation |
p-value Computation for Test of Exchangeability with Block Dependencies
Description
Generates a block permutation p-value. Uses a heuristic to decide whether to use distance caching or simple block permutations.
Usage
blockPermute(X, block_boundaries = NULL, block_labels = NULL, nruns, type, p)
Arguments
X |
The binary or real matrix on which to perform permutation resampling |
block_boundaries |
Vector denoting the positions where a new block of non-independent features starts. Default is NULL. |
block_labels |
Length |
nruns |
The resampling number (use at least 1000) |
type |
Either an unbiased estimate ('unbiased'), or exact ('valid') p-value (see Hemerik and Goeman, 2018), or both ('both'). |
p |
The power p of |
Details
Dependencies: buildForward, buildReverse, cachePermute, cacheBlockPermute1, cacheBlockPermute2, getHammingDistance, getLpDistance, naiveBlockPermute1, naiveBlockPermute2
Value
The block permutation p-value