qtruncgamma: Truncated Gamma distribution

Description Usage Arguments Examples

View source: R/code_Bayes.R

Description

Quantile function and random generation for truncated Gamma distribution with parameters shape and rate.

Usage

1
2
3
qtruncgamma(p, a = -Inf, b = Inf, shape, rate = 1)

rtruncgamma(n, a = -Inf, b = Inf, shape, rate = 1)

Arguments

p

vector of probabilities.

a

vector of lower bounds. These may be -Inf.

b

vector of upper bounds. These may be Inf.

shape, rate

shape and rate parameters. Must be positive, rate strictly.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

Examples

1
2
qtruncgamma(0.6,1,2,2,1)
rtruncgamma(5,1,2,2,1)

BiG documentation built on Nov. 17, 2017, 4:48 a.m.

Related to qtruncgamma in BiG...