Projections based test of uniformity | R Documentation |
It checkes whether the data are uniformly distributed on the circle or the (hyper-)sphere.
ptest(x, B = 100)
x |
A matrix containing the data, unit vectors. |
B |
The number of random uniform projections to use. |
For more details see Cuesta-Albertos, Cuevas and Fraiman (2009).
A list 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.
rayleigh, kuiper
x <- rvmf(100, rnorm(5), 1) ## Fisher distribution with low concentration
ptest(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.