tgamma: Truncated gamma distribution

Description Usage Arguments Value Note Author(s) Examples

Description

Compute the probability density and quantile functions for the truncated gamma distribution with shape and scale parameters, restricted to the interval (a,b).

Usage

1
2
dtgamma(x, shape, scale = 1, a = 0, b = Inf)
qtgamma(p, shape, scale = 1, a = 0, b = Inf)

Arguments

x

vector of quantiles

p

vector of probabilities

shape

shape parameter

scale

scale parameter

a

lower limit of range

b

upper limit of range

Value

dtgamma gives the density function for the truncated gamma distribution. qtgamma gives the quantile function for the truncated gamma distribution.

Note

Auxiliary function to compute the E step for the Slash and Skew-slash models.

Author(s)

Clecio Ferreira, Diego Gallardo and Camila Zeller

Examples

1
2
3
4
5
6
7
8
##probability density and quantile function of the truncated gamma
##model with shape and scale parameters equal to 1
##evaluated in 2 and 0.75, respectively
dtgamma(2, shape=1, a=1)
qtgamma(0.75, shape=1, a=1)
##standard gamma distribution with shape parameter 2 evaluated in 1
dtgamma(1, shape=2)
dgamma(1, shape=2)

skewMLRM documentation built on Nov. 24, 2021, 9:07 a.m.

Related to tgamma in skewMLRM...