Projections based test for distributional equality of two groups | R Documentation |
Projections based test for distributional equality of two groups.
dptest(x1, x2, B = 100)
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. |
The test compares the distributions of two compositional datasets using random projections. For more details see Cuesta-Albertos, Cuevas and Fraiman (2009).
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. |
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
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.
comp.test
x1 <- rdiri(50, c(3, 4, 5)) ## Fisher distribution with low concentration
x2 <- rdiri(50, c(3, 4, 5))
dptest(x1, x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.