Description Usage Arguments Value Examples
View source: R/rgamma_with_mean_sd.R
Mean and standard deviation parameterised gamma sampling function
1 | rgamma_with_mean_sd(n, mean, sd)
|
n |
Numeric, the number of samples to take. |
mean |
Numeric, the mean of the distribution. |
sd |
Numeric the standard deviation of the distribution. |
A vector of samples from the gamma distribution
1 2 3 4 5 6 7 8 9 10 11 12 | ## Example
sample <- rgamma_with_mean_sd(1000, 2, 3)
mean(sample)
sd(sample)
hist(sample)
## Code
rgamma_with_mean_sd
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.