Description Usage Arguments Value
View source: R/ParameterSolver.R
Function to find parameters for a gamma distn
1 | quantiles_to_gamma_pars(qu, p, init = c(1, 1), quiet = F, ...)
|
qu |
location (x) of p-th quantile. Vector of length 2. |
p |
quantile (i.e. 100*p percent of the observed data is less than qu). Vector of length 2. |
init |
starting values for optimization. Recommendation: (x, 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.