gen_gamma_par_from_gamma_par: Generalized gamma parameters from gamma parameters and...

Description Usage Arguments Value Author(s)

View source: R/gen_gamma_par_from_gamma_par_function.R

Description

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

Usage

1
gen_gamma_par_from_gamma_par(pl.fac, pl.exp, g.shape, g.rate)

Arguments

pl.fac

Power law prefactor

pl.exp

Power law exponent

g.shape

Gamma shape parameter

g.rate

Gamma rate parameter

Value

Vector containing GG parameters a, d, p and mu, sigma, Q as well as descriptive statistics mean, var and sd of the GG

Author(s)

Nikolai Knapp, nikolai.knapp@ufz.de


niknap/ScalingFunctions documentation built on May 22, 2021, 6:43 a.m.