HR_test: Hermans-Rasson test function

Description Usage Arguments Value Examples

View source: R/HR_test.r

Description

Perform variants of the Hermans-Rasson test.

Usage

1
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

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

Example output

Test statistic (T)            p-value 
          29.67603            0.00100 
Warning message:
In check_data(data) : Converting to modulo 2pi...

CircMLE documentation built on Sept. 2, 2020, 1:07 a.m.