BE {gofgamma} | R Documentation |
This function computes the statistic of the goodness-of-fit test for the gamma family due to Betsch and Ebner (2019).
BE(data, k_estimator, a)
data |
a vector of positive numbers. NOTE: |
k_estimator |
value of the estimated |
a |
positive tuning parameter. |
The test is of weighted L^2
type and uses a characterization of the distribution function of the gamma distribution. Values of k_estimator
are found by gamma_est
.
value of the test statistic
Betsch, S., Ebner, B. (2019) "A new characterization of the Gamma distribution and associated goodness of fit tests", Metrika, 82(7):779-806. DOI
X=stats::rgamma(20,3,6)
BE(X,k_estimator=gamma_est(X)[1],a=2)