dot-gpdFittedPValue: Compute p-value based on generalized Pareto distribution...

Description Usage Arguments Value References

Description

Computes a p-value based on a generalized Pareto distribution (GPD) fitting. This procedure may be used in the semi-parametric 2-Wasserstein distance-based test to estimate small p-values accurately, instead of obtaining the p-value from a permutation test.

Usage

1
.gpdFittedPValue(val, distr.ordered)

Arguments

val

value of a specific test statistic, based on original group labels

distr.ordered

vector of values, in decreasing order, of the test statistic obtained by repeatedly permuting the original group labels

Value

A vector of three, see Schefzik et al. (2020) for details:

References

Schefzik, R., Flesch, J., and Goncalves, A. (2020). waddR: Using the 2-Wasserstein distance to identify differences between distributions in two-sample testing, with application to single-cell RNA-sequencing data.


goncalves-lab/diffexpR documentation built on Oct. 26, 2021, 5:08 p.m.