gk: An R Package for the g-and-k and Generalised g-and-h Distributions

Abstract:

The g-and-k and (generalised) g-and-h distributions are flexible univariate distributions which can model highly skewed or heavy tailed data through only four parameters: location and scale, and two shape parameters influencing the skewness and kurtosis. These distributions have the unusual property that they are defined through their quantile function (inverse cumulative distribution function) and their density is unavailable in closed form, which makes parameter inference complicated. This paper presents the gk R package to work with these distributions. It provides the usual distribution functions and several algorithms for inference of independent identically distributed data, including the finite difference stochastic approximation method, which has not been used before for this problem.

Cite PDF Tweet

Author

Affiliation

Dennis Prangle

 

Published

Sept. 9, 2020

Received

Jun 22, 2017

DOI

10.32614/RJ-2020-010

Volume

Pages

12/1

7 - 20

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at RJ-2020-010.zip

CRAN packages used

gk, microbenchmark, abc, EasyABC, Ecdat

CRAN Task Views implied by cited packages

Bayesian, Distributions, Econometrics, TimeSeries

Footnotes

    Reuse

    Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

    Citation

    For attribution, please cite this work as

    Prangle, "The R Journal: gk: An R Package for the g-and-k and Generalised g-and-h Distributions", The R Journal, 2020

    BibTeX citation

    @article{RJ-2020-010,
      author = {Prangle, Dennis},
      title = {The R Journal: gk: An R Package for the g-and-k and Generalised g-and-h Distributions},
      journal = {The R Journal},
      year = {2020},
      note = {https://doi.org/10.32614/RJ-2020-010},
      doi = {10.32614/RJ-2020-010},
      volume = {12},
      issue = {1},
      issn = {2073-4859},
      pages = {7-20}
    }