HR_test {CircMLE}R Documentation

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

testdata = circular::rvonmises(20, mu = circular::circular(pi), kappa = 3)
HR_test(testdata, iter = 999)

[Package CircMLE version 0.3.0 Index]