test.BE {gofgamma}R Documentation

The Betsch-Ebner goodness-of-fit test for the gamma family

Description

This function computes the goodness-of-fit test for the gamma family due to Betsch and Ebner (2019).

Usage

test.BE(data, a = 1, boot = 500, alpha = 0.05)

Arguments

data

a vector of positive numbers.

a

positive tuning parameter.

boot

number of bootstrap iterations used to obtain critical value.

alpha

level of significance of the test.

Details

The test is of weighted L^2 type and uses a characterization of the distribution function of the gamma distribution. Critical values are obtained by a parametric bootstrap procedure, see crit.values.

Value

a list containing the value of the test statistic, the approximated critical value and a test decision on the significance level alpha:

$T.value

the value of the test statistic.

$cv

the approximated critical value.

$par.est

number of points used in approximation.

$Decision

the comparison of the critical value and the value of the test statistic.

$sig.level

level of significance chosen.

$boot.run

number of bootstrap iterations.

References

Betsch, S., Ebner, B. (2019) "A new characterization of the Gamma distribution and associated goodness of fit tests", Metrika, 82(7):779-806. DOI

Examples

test.BE(stats::rgamma(20,3,6),boot=100)


[Package gofgamma version 1.0 Index]