JP.GoF: Goodness-of-fit tests for Jones-Pewsey distribution

Description Usage Arguments Details Value See Also Examples

View source: R/Jones-Pewsey.R

Description

Runs a bundle of goodness-of-fit tests on the data against the Jones-Pewsey distribution.

Usage

1
JP.GoF(data, mu, kappa, psi, display = T)

Arguments

data

Vector of angles to be tested against the Jones-Pewsey distribution.

mu

Mean direction parameter of the Jones-Pewsey distribution to be fitted.

kappa

Concentration parameter of the Jones-Pewsey distribution to be fitted.

psi

Shape parameter of the Jones-Pewsey distribution to be fitted.

display

Boolean specifying whether to print the results of the four tests to the console or not.

Details

The tests rely on doubling the Jones-Pewsey distribution function of each angle in the data set, and testing the resulting distribution for uniformity.

Value

List of test statistics for the four tests, plus the p-value for the Rayleigh tests.

See Also

The individual tests included in the bundle: kuiper.test, watson.test, rao.spacing.test, and rayleigh.test.

Examples

1
GoF <- JP.GoF(q, mu, kappa, psi)

ClairBee/AS.circular documentation built on Jan. 24, 2020, 3:57 p.m.