View source: R/gamma_couplings.R
Sample from maximally coupled Gamma distributions with given parameters alpha1, alpha2, beta1, beta2, where alpha is the shape and beta the rate, i.e. the log-density at x is
alpha * log(beta) - lgamma(alpha) + (alpha-1) * log(x) - beta x
1 | rgamma_coupled(alpha1, alpha2, beta1, beta2)
|
alpha1 |
shape parameter of first distribution |
alpha2 |
shape parameter of second distribution |
beta1 |
rate parameter of first distribution |
beta2 |
rate parameter of second distribution |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.