Description Usage Arguments Value
View source: R/ParameterSolver.R
Function to find parameters for a gamma distn
1 | mean_quantile_to_gamma_pars(mean, qu, p, init = c(1, 1), quiet = F, ...)
|
mean |
expected value of the distribution |
qu |
location (x) of p-th quantile. |
p |
quantile (i.e. 100*p percent of the observed data is less than qu). |
init |
starting values for optimization. Recommendation: (mean, 1), where x is close to the expected value (or median) of your distribution. |
... |
Other options passed to optim |
shape and scale parameters for the gamma distribution, (a, s), where EX = a*s and Var(X) = a*s^2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.