
gamma_test(x)
"htest"
containing the following components.
The asymptotic null distribution of the test statistic is used to approximate p-values.
NOTE: the unbiased sample covariance estimator is used to compute the test statistic.
gamma_fit
for fitting a Gamma distribution to data.# Testing the gamma distribution hypothesis on the logarithm of variable Loss
# of the danishuni data set
library(fitdistrplus)
data(danishuni)
logLoss <- log(danishuni$Loss) # logarithm of Loss variable
logLoss <- logLoss[logLoss > 0] # observations > 0
gamma_test(logLoss)
Run the code above in your browser using DataLab