Description Usage Arguments Value Examples
This function generates random samples from shifted gamma distribution. That is, random samples are first generated from gamma distribution with shape parameter shape
and scale parameter scale
and then the mean of the gamma distribution, shape
*scale
, is subtracted from the sample.
1 | rgammashift(n, shape, scale)
|
n |
number of observations. |
shape |
the shape parameter of gamma distribution |
scale |
the scale parameter of gamma distribution #' |
A vector of n
values. It is equivalent to rgamma(n, shape, scale)- shape * scale.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.