View source: R/gamma_couplings.R
rgamma_coupled | R Documentation |
Draws a pair of variables, respectively Gamma(alpha1, beta1) and Gamma(alpha2, beta2) where the parametrization is that beta is the rate, i.e. the log-pdf of Gamma(alpha,beta) evaluated at x is
α * log(β) - lgamma(α) + (α-1) * log(x) - β x
where lgamma stands for the logarithm of the Gamma function.
rgamma_coupled(alpha1, alpha2, beta1, beta2)
alpha1 |
First shape |
alpha2 |
Second shape |
beta1 |
First rate |
beta2 |
Second rate |
A list with entry 'xy' for the pair of values, and boolean 'identical' indicating whether the two values are identical.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.