# GeneralizedHyperbolic

Over the summer of 2009–2010 I undertook a summer studentship at the University of Auckland Department of Statistics. The project I undertook was to create a new package called GeneralizedHyperbolic based on David Scott’s HyperbolicDist package.

What the GeneralizedHyperbolic package does is it provides functions for use with the generalised hyperbolic distribution and related distributions. These functions include probability, density, quantile, fitting, checking and random observation generating functions.

The result of my work has been posted up on GitHub. Since undertaking this work GeneralizedHyperbolic has become available on CRAN. To install the package run the following command within R: `install.packages("GeneralizedHyperbolic")`

.

Once the package has been installed, using it is as simple as running R, then loading the package using `library(GeneralizedHyperbolic)`

. Example usage is as follows:

I have created some extra code to go with this package that allows visualisation of the generalised hyperbolic distribution. Note, the slider tool was sourced from the fBasics package. With this tool, you can modify each parameter by moving a slider and noting the effects that this has. You can grab the code to do this at my GHyp Slider gist.

Here is an example of the visualisation: