.gpdFittedPValue {waddR}R Documentation

Compute p-value based on generalized Pareto distribution fitting

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

.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.


[Package waddR version 1.7.1 Index]