The second Allison-Betsch-Ebner-Visagie test statistic
The second Allison-Betsch-Ebner-Visagie test statistic
This function computes the second test statistic of the goodness-of-fit tests for the inverse Gaussian family due to Allison et al. (2022). Two different estimation procedures are implemented, namely the method of moment and the maximum likelihood method.
ABEV2(data, a =10, meth ="MME")
Arguments
data: a vector of positive numbers.
a: positive tuning parameter.
meth: method of estimation used. Possible values are 'MME' for moment estimation and 'MLE' for maximum likelihood estimation.
Returns
value of the test statistic.
Details
The numerically stable test statistic for the second Allison-Betsch-Ebner-Visagie test is defined as:
with φ^n=μ^nλ^n, where μ^n,λ^n are consistent estimators of μ,λ, respectively, the parameters of the inverse Gaussian distribution. Furthermore Yn,j=μ^nXj, j=1,...,n, for (Xj)j=1,...,n, a sequence of independent observations of a positive random variable X. The functions h~i,a(s,t), i=1,2, are defined in Allison et al. (2022), section 5.1, and Φ denotes the distribution function of the standard normal distribution. The null hypothesis is rejected for large values of the test statistic ABEV2n,a.
Examples
ABEV2(rmutil::rinvgauss(20,2,1),a=10,meth='MLE')
References
Allison, J.S., Betsch, S., Ebner, B., Visagie, I.J.H. (2022) "On Testing the Adequacy of the Inverse Gaussian Distribution". LINK