Two sample location test for (hyper-)spherical data.
spcauchy2test(y1, y2, B = 1)
pkbd2test(y1, y2, B = 1)
vmf2test(y1, y2, B = 1)
sp2(y1, y2, tol = 1e-6)
pk2(y1, y2, tol = 1e-6)
vmf2(y1, y2, tol = 1e-6)
The result of the spcauchy2test(), pkbd2test() and vmf2test() functions is an "htest"class object. Thus it returns a list including:
The test statistic value.
The degree(s) of freedom of the test.
The p-value of the test.
A character with the alternative hypothesis.
A character with the test used.
A character vector with two elements.
The result of the sp2(), pk2() and vmf2 functions is a list including:
The common location parameter, for both samples, under the null hypothesis.
The concentration parameter of the first group, asusming a common location parameter.
The concentration parameter of the second group, asusming a common location parameter.
The concentration parameter (assuming the von Mises-Fisher distribution) of the first group, asusming a common location parameter.
The concentration parameter (assuming the von Mises-Fisher distribution) of the second group, asusming a common location parameter.
The log-likelihood of the whole sample, asusming a common location (or mean direction) parameter.
A matrix with the data in Euclidean coordinates, i.e. unit vectors.
A matrix with the data in Euclidean coordinates, i.e. unit vectors.
The number of bootstraps to perform.
The tolerance value at which to terminate the iterations.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
A log-likelihood ratio based test for the equality of two location parameters, assuming that the data in each group follow the spherical Cauchy of the Poisson kernel-based distribution. Bootstrap is also offered.
For the von Mises-Fisher distribution we do the same, but for the mean direction.
The functions sp2() and pk2() estimate the common location of the two groups assuming unequal concentration parameters. These functions are used the compute the log-likelihood under the null hypothesis. So does the function vmf2(), but the mean direction.
Kato S. and McCullagh P. (2020). Some properties of a Cauchy family on the sphere derived from the Mobius transformations. Bernoulli, 26(4): 3224--3248.
Golzy M. and Markatou M. (2020). Poisson kernel-based clustering on the sphere: convergence properties, identifiability, and a method of sampling. Journal of Computational and Graphical Statistics, 29(4): 758--770.
Tsagris M., Papastamoulis P. and Kato S. (2024). Directional data analysis using the spherical Cauchy and the Poisson kernel-based distribution. https://arxiv.org/pdf/2409.03292.
het.boot, het.aov
mu <- rvmf(2, rnorm(5), 3)
y1 <- rspcauchy(60, mu[1, ], 0.4)
y2 <- rspcauchy(30, mu[2, ], 0.8)
spcauchy2test(y1, y2)
Run the code above in your browser using DataLab