Learn R Programming

Directional (version 2.2)

Test for a given mean direction: Test for a given mean direction

Description

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

Usage

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

Arguments

x
A matrix with the data, unit vectors.
mu
A (not necessarily 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.

Value

A list including: A list including:

Details

The log-likelihood ratio test is performed.

References

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

See Also

vmf, kent.mle, rayleigh

Examples

Run this code
mu <- rnorm(5)
x <- rvmf(100, mu, 10)
meandir.test(x, mu, 1)
meandir.test(x, mu, 999)

Run the code above in your browser using DataLab