powered by
Quantile function and random generation for truncated Gamma distribution with parameters shape and rate.
shape
rate
qtruncgamma(p, a = -Inf, b = Inf, shape, rate = 1)rtruncgamma(n, a = -Inf, b = Inf, shape, rate = 1)
rtruncgamma(n, a = -Inf, b = Inf, shape, rate = 1)
vector of probabilities.
vector of lower bounds. These may be -Inf.
-Inf
vector of upper bounds. These may be Inf.
Inf
shape and rate parameters. Must be positive, rate strictly.
number of observations. If length(n) > 1, the length is taken to be the number required.
length(n) > 1
# NOT RUN { qtruncgamma(0.6,1,2,2,1) rtruncgamma(5,1,2,2,1) # }
Run the code above in your browser using DataLab