Usage: |
{pvalue,testresult,chipvalue,oversizing} = etgammaexacttest(sample,level,nullpar,shapepar)
|
Input: |
| sample | n x 1 vector, the data
|
| level | scalar, the size of the exact test
|
| nullpar | scalar, parameter of the null hypothesis (scale parameter)
|
| shapepar | scalar, shape parameter of the Gamma distribution
|
Output: |
| pvalue | scalar, the p-value of the exact test |
| testresult | string, the result of the exact test (i.e., rejection or
acceptance of the null hypothesis) |
| chipvalue | scalar, the p-value of the chi^2 asymptotic likelihood
ratio test of the hypothesis |
| oversizing | scalar, the oversizing of the chi^2 asymptotics, i.e.,
the difference of pvalue and chipvalue |