ncg
Computing the noncentral gamma distribution, its inverse and the noncentrality parameter. The noncentral gamma distribution can be viewed as a generalization of the noncentral chi-squared distribution and it can be expressed as a mixture of a Poisson density function with a incomplete gamma function. The noncentral gamma distribution is not available in free conventional statistical programs. This paper aimed to propose an algorithm for the noncentral gamma by combining the method originally proposed by D. Benton and K. Krishnamoorthy [Comput. Stat. Data Anal. 43, No. 2, 249–267 (2003; Zbl 05361812)] for the noncentral distributions with the method of inversion of the distribution function with respect to the noncentrality parameter using Newton-Raphson. The algorithms are available in pseudocode and implemented as R functions. To evaluate the accuracy and speed of computation of the algorithms implemented in R, results of the distribution function, density function, quantiles and noncentrality parameter of the noncentral incomplete gamma and its particular case, the noncentral chi-squared, were obtained for the arguments settings used by Benton and Krishnamoorthy [loc. cit] and Z.-Y. Chen [J. Stat. Comput. Simulation 75, No. 10, 813–829 (2005; Zbl 02240148)]. The implemented routines performed well and, in general, were as accurate than other approximations. The R package denoted ncg is available to download on the CRAN-R package repository http://cran.r-project.org/.
Keywords for this software
References in zbMATH (referenced in 3 articles )
Showing results 1 to 3 of 3.
Sorted by year (- Baharev, Ali; Schichl, Hermann; Rév, Endre: Computing the noncentral-$F$ distribution and the power of the $F$-test with guaranteed accuracy (2017)
- Gil, Amparo; Segura, Javier; Temme, Nico M.: GammaCHI: a package for the inversion and computation of the gamma and chi-square cumulative distribution functions (central and noncentral) (2015)
- Cardoso de Oliveira, Izabela Regina; Furtado Ferreira, Daniel: Computing the noncentral gamma distribution, its inverse and the noncentrality parameter (2013)