Projections based test for distributional equality of two groups {Compositional}R 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)

[Package Compositional version 6.8 Index]