# tgamma: Truncated Gamma Functions In TruncatedDistributions: Use Truncated Distribution functions

## Description

pdf, cdf, inverse cdf, and random deviates of the truncated gamma distribution.

## Usage

 ```1 2 3 4``` ```rtgamma(n, shape, scale=1, a=0, b=Inf) dtgamma(x, shape, scale=1, a=0, b=Inf) ptgamma(q, shape, scale=1, a=0, b=Inf) qtgamma(p, shape, scale=1, a=0, b=Inf) ```

## Arguments

 `x,q` vector of quantiles. `p` vector of probabilities. `n` number of observations. If length(n) > 1, the length is taken to be the number required. `shape` vector of shape parameters. `scale` vector of scale parameters. `a` vector of lower truncation limits `b` vector of upper truncation limits

## Value

dtgamma gives the density, ptgamma gives the distribution function, qtgamma gives the quantile function, and rtgamma generates random deviates.

Rob Carnell

## Examples

 ```1 2 3 4``` ``` rtgamma(5, 1, scale=2, a=0.5, b=3.0) dtgamma(seq(0, 4, by=0.5), 1, scale=2, a=0.5, b=3.0) ptgamma(seq(0, 4, by=0.5), 1, scale=2, a=0.5, b=3.0) qtgamma(seq(0, 1, by=0.1), 1, scale=2, a=0.5, b=3.0) ```

TruncatedDistributions documentation built on May 31, 2017, 2:26 a.m.