Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

circ.range

Circular Range


Description

Computes the circular range of a data set and performs a test of uniformity if specified.

Usage

circ.range(x, test=FALSE)

Arguments

x

vector of directional data measured in radians.

test

logical flag: if TRUE then the test of uniformity is performed; otherwise the test is not performed. Default is FALSE.

Details

The circular range is the shortest arc on the circle containing the entire set of data. The p-value is computed using the exact distribution of the circular range under the hypothesis of uniformity.

Value

Returns a dataframe with the circular range, r. If the significance test is requested the p-value of the test is returned as p.value.

Note

nCk(n,k) evaluate combinatoric, it should not be called by the users.

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 7.4, World Scientific Press, Singapore.

See Also

Examples

data <- rvm(50, 0, 2)
circ.range(data, test=TRUE)
data <- runif(50, 0, 2*pi)
circ.range(data, test=TRUE)

CircStats

Circular Statistics, from "Topics in Circular Statistics" (2001)

v0.2-6
GPL-2
Authors
S-plus original by Ulric Lund <ulund@calpoly.edu>, R port by Claudio Agostinelli <claudio.agostinelli@unitn.it>
Initial release
2018-06-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.