distDataLargeP {flintyR}R Documentation

Asymptotic p-value of Exchangeability Using Distance Data

Description

Generates an asymptotic p-value.

Usage

distDataLargeP(dist_list)

Arguments

dist_list

The list (length BB) of pairwise distance data. Each element in list should be either a distance matrix or a table recording pairwise distances.

Details

Generates a weighted convolution of chi-squares distribution of VV statistic by storing the provided list of distance data as an (N2)×B{N\choose2} \times B array, and then using large-PP theory to generate the asymptotic null distribution against which the p-value of observed VV statistic is computed.

Each element of dist_list should be a N×NN\times N distance matrix.

Dependencies: buildReverse, getChi2Weights, weightedChi2P

Value

The asymptotic p-value obtained from the weighted convolution of chi-squares distribution.


[Package flintyR version 0.1.0 Index]