cacheBlockPermute2: Resampling Many V Statistics (Version 2)

View source: R/auxiliary.R

cacheBlockPermute2R Documentation

Resampling Many V Statistics (Version 2)

Description

Generates a block permutation distribution of V statistic. Precomputes distances and some indexing arrays to quickly generate samples from the block permutation distribution of the V statistic of \mathbf{X}.

Usage

cacheBlockPermute2(X, block_boundaries, nruns, 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

nruns

The resampling number (use at least 1000)

p

The power p of l_p^p, i.e., ||x||_p^p = (x_1^p+...x_n^p)

Details

This version is with block boundaries specified.

Dependencies: buildForward, buildReverse, cachePermute, getHammingDistance, getLpDistance

Value

A vector of resampled values of the V statistic


flintyR documentation built on March 31, 2023, 8:19 p.m.