## ncg

swMATH ID: | 12413 |

Software Authors: | Daniel Furtado Ferreira, Izabela Regina Cardoso de Oliveira, Fernando Henrique Toledo |

Description: | 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/. |

Homepage: | http://cran.r-project.org/web/packages/ncg/index.html |

Source Code: | https://github.com/cran/ncg |

Dependencies: | R |

Related Software: | R; GitHub; AS 226; C-XSC; GammaCHI; Algorithm 939; DLMF; SAS/STAT; SAS; Maxima; CRAN |

Cited in: | 3 Publications |

all
top 5

### Cited by 8 Authors

1 | Baharev, Ali |

1 | Cardoso de Oliveira, Izabela Regina |

1 | Furtado Ferreira, Daniel |

1 | Gil, Amparo |

1 | Rév, Endre |

1 | Schichl, Hermann |

1 | Segura, Javier |

1 | Temme, Nico M. |

### Cited in 2 Serials

2 | Computational Statistics |

1 | Computer Physics Communications |

### Cited in 2 Fields

3 | Numerical analysis (65-XX) |

2 | Statistics (62-XX) |