Skip to contents

Density, distribution function, quantile function and random generation for the Truncated Gamma distribution with endpoints at a, b. Support provided by the truncdist package with all parameters available for a standard Gamma distribution. One additional parameter, shift is provided to generate Gamma distributions with non-zero starts, starting at the shift value.

Usage

dtgamma(x, shape, rate = 1, shift = 0, a = 0, b = Inf, ...)

ptgamma(q, shape, rate = 1, shift = 0, a = 0, b = Inf, ...)

rtgamma(n, shape, rate = 1, shift = 0, a = 0, b = Inf, ...)

qtgamma(p, shape, rate = 1, shift = 0, a = 0, b = Inf, ...)

Arguments

x

numeric vector of quantiles

shape

shape parameter of gamma distribution

rate

rate parameter of gamma distribution, default 1

shift

shift of the left end of the distribution

a

distribution start

b

distribution end

...

additional parameters to be passed to truncdist::dtrunc, truncdist::ptrunc, truncdist::rtrunc and truncdist::qtrunc

q

numeric vector of quantiles

n

number of observations

p

vector of probabilities

Value

density of distribution

distribution function

random deviates

quantile function