meandir.test: Test for a given mean direction

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/meandir.test.R

Description

A log-likelihood ratio test for testing whether the sample mena direction is equal to some predefined one.

Usage

1
meandir.test(x, mu, B = 999)

Arguments

x

A matrix with the data, unit vectors.

mu

A unit vector with the hypothesized mean direction.

B

A number either 1, so no bootstrap calibration is performed or more than 1, so bootstrap calibration is performed.

Details

The log-likelihood ratio test is performed.

Value

A list including:

mean.dir

The sample mean direction

pvalue

The p-value of the test.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Giorgos Athineou <athineou@csd.uoc.gr>

References

Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.

See Also

vmf, kent.mle, rayleigh

Examples

1
2
3
4
5
mu <- rnorm(5)
mu <- mu / sqrt( sum(mu^2) )
x <- rvmf(100, mu, 10)
meandir.test(x, mu, 1)
meandir.test(x, mu, 499)

Directional documentation built on May 19, 2017, 3:29 p.m.

Search within the Directional package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.