Description Usage Arguments Value Author(s)
View source: R/gen_gamma_par_from_gamma_par_function.R
If a variable x follows a gamma distribution the dependent variable y, which is related to x via a power law relationship y=a*x^b follows a generalized gamma distribution (GG). The parameters of the GG can be calculated from the input gamma parameters and the power law coefficients. Two alternative formulations for the GG exist in the literature, one of which uses parameters named a, d, p while the other one uses mu, sigma, Q (e.g., R package flexsurv). Both parameter sets are calculated by this function. For parameter conversion see also: https://en.wikipedia.org/wiki/Generalized_gamma_distribution
1 | gen_gamma_par_from_gamma_par(pl.fac, pl.exp, g.shape, g.rate)
|
pl.fac |
Power law prefactor |
pl.exp |
Power law exponent |
g.shape |
Gamma shape parameter |
g.rate |
Gamma rate parameter |
Vector containing GG parameters a, d, p and mu, sigma, Q as well as descriptive statistics mean, var and sd of the GG
Nikolai Knapp, nikolai.knapp@ufz.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.