The Standard Distribution Functions for the Truncated Generalised Gamma Distribution

Density, distribution function, quantile function and random generation for the Truncated Generalised Gamma Distribution (also in log10(x) and ln(x) space).


This small package provides the standard R distribution functions for the Truncated Generalised Gamma Distribution (see Murray, Robotham, Power (2016) [MRP]).

Included are the density, CDF, quantile function and random generator, both for the real-space TGGD and log-space TGGD.

Installation

The simplest way to install the package is to use devtools.

First, install the only dependency, gsl: install.packages("gsl").

Next, install devtools: install.packages("devtools") (note there are further dependencies of this package).

Finally, install this package: install_github('asgr/tggd').

Usage

Usage details are found by accessing the help files in the package, but are identical to the standard R distribution functions (eg. rnorm or `dpoiss``). Examples are also found in these files.

To understand why and when to use these functions, please refer to MRP.

We note in particular that the log-space forms of the functions are defined as the distributions of the log of the variates from the real-space distribution with identical parameters. This is the correct form to use if performing Bayesian analyses in which the values of the variates are uncertain with priors defined in log-space (eg. lognormal distributions).

Authors

  • Aaron Robotham
  • Steven Murray

Version

0.1

News

Version 0.1:

This is first version submitted to CRAN 2015-12-02 (failed)

Basic TGGD functions have been coded and checked.

Documentation for TGGD has been written and checked.

Version 0.1.1 (on CRAN):

This is second version submitted to CRAN 2015-12-03

Fixed the log.p arguments

Added NAMESPACE info to fix some CRAN check notes

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tggd")

0.1.1 by Aaron Robotham, 3 years ago


Browse source code at https://github.com/cran/tggd


Authors: Aaron Robotham , Steven Murray


Documentation:   PDF Manual  


GPL-3 license


Depends on gsl


See at CRAN