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.
Supplementary materials are available in addition to this article. It can be downloaded at RJ-2020-010.zip
gk, microbenchmark, abc, EasyABC, Ecdat
Bayesian, Distributions, Econometrics, TimeSeries
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 ...".
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} }