dptest: Projections based test for distributional equality of two...

View source: R/dptest.R

Projections based test for distributional equality of two groupsR Documentation

Projections based test for distributional equality of two groups

Description

Projections based test for distributional equality of two groups.

Usage

dptest(x1, x2, B = 100)

Arguments

x1

A matrix containing compositional data of the first group.

x2

A matrix containing compositional data of the second group.

B

The number of random uniform projections to use.

Details

The test compares the distributions of two compositional datasets using random projections. For more details see Cuesta-Albertos, Cuevas and Fraiman (2009).

Value

A vector including:

pvalues

The p-values of the Kolmogorov-Smirnov tests.

pvalue

The p-value of the test based on the Benjamini and Heller (2008) procedure.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Cuesta-Albertos J. A., Cuevas A. and Fraiman, R. (2009). On projection-based tests for directional and compositional data. Statistics and Computing, 19: 367–380.

Benjamini Y. and Heller R. (2008). Screening for partial conjunction hypotheses. Biometrics, 64(4): 1215–1222.

See Also

comp.test

Examples

x1 <- rdiri(50, c(3, 4, 5)) ## Fisher distribution with low concentration
x2 <- rdiri(50, c(3, 4, 5))
dptest(x1, x2)

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.