CircStats (version 0.2-6)

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.

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.

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.

References

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

See Also

kuiper, rao.spacing, r.test, v0.test, watson.

Examples

Run this code
# NOT RUN {
data <- rvm(50, 0, 2)
circ.range(data, test=TRUE)
data <- runif(50, 0, 2*pi)
circ.range(data, test=TRUE)
# }

Run the code above in your browser using DataCamp Workspace