quantiles_to_gamma_pars: Function to find parameters for a gamma distn

Description Usage Arguments Value

View source: R/ParameterSolver.R

Description

Function to find parameters for a gamma distn

Usage

1
quantiles_to_gamma_pars(qu, p, init = c(1, 1), quiet = F, ...)

Arguments

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

Value

shape and scale parameters for the gamma distribution, (a, s), where EX = a*s and Var(X) = a*s^2


srvanderplas/nppd documentation built on May 30, 2019, 8:42 a.m.