Learn R Programming

CircMLE (version 0.3.0)

HR_test: Hermans-Rasson test function

Description

Perform variants of the Hermans-Rasson test.

Usage

HR_test(data, original = F, iter = 9999)

Arguments

data

A vector of class 'circular', or numeric vector of angles measured in radians

original

A logical of whether or not to run the original version of the Hermans-Rasson test or the newer version described in Landler et al. (2019) doi: 10.1186/s12898-019-0246-8 (default = F)

iter

The number of bootstrap replicates to perform in order to estimate the p-value of the test. (default = 9999)

Value

A numeric vector of the test statistic (T) and associated p-value

Examples

Run this code
# NOT RUN {
testdata = circular::rvonmises(20, mu = circular::circular(pi), kappa = 3)
HR_test(testdata, iter = 999)
# }

Run the code above in your browser using DataLab