View source: R/Simulations_Functions.R
bg__fit_gamma | R Documentation |
Fits the parameters of a gamma distribution to a set of observations
bg__fit_gamma(x)
x |
vector of observations to fit. |
scale = var(x)/mean(x) shape = mean(x)/scale
list with two entries: shape and size.
# dat <- rgamma(100, 0.1, 1)
# params <- bg__fit_gamma(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.