View source: R/special_sphere.R
| sphere.utest | R Documentation |
Given N observations \lbrace X_1, X_2, \ldots, X_M \brace on
\mathcal{S}^{p-1}, it tests whether the data is distributed uniformly
on the sphere.
sphere.utest(spobj, method = c("Rayleigh", "RayleighM"))
spobj |
a S3 |
method |
(case-insensitive) name of the test method containing
|
a (list) object of S3 class htest containing:
a test statistic.
p-value under H_0.
alternative hypothesis.
name of the test.
name(s) of provided sample data.
chikuse_statistics_2003Riemann
\insertRefmardia_directional_1999Riemann
wrap.sphere
#-------------------------------------------------------------------
# Compare Rayleigh's original and modified versions of the test
#-------------------------------------------------------------------
# Data Generation
myobj = sphere.runif(n=100, p=5, type="riemdata")
# Compare 2 versions : Original vs Modified Rayleigh
sphere.utest(myobj, method="rayleigh")
sphere.utest(myobj, method="rayleighm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.