powered by
Random generation for the shifted and truncated Gamma distribution with parameters shape and scale.
shape
scale
rtgamma(n = 1, shape = 1, rate = 1, shift = 0, alpha = 0.95)
number of observations
Gamma shape parameter
Gamma rate parameter
shift parameter.
upper quantile of gamma distribution. All values above alpha are truncated.
rtgamma generates random deviates. The length of the result is determined by n.
n
# NOT RUN { rtgamma(n = 1, shape = 1, rate = 1, shift = 1, alpha = 0.95) # }
Run the code above in your browser using DataLab