update_gamma {grizbayr} | R Documentation |
Update Gamma
Description
Updates Gamma Distribution with the Gamma-Exponential
conjugate prior update rule. Parameterized by k
and \theta
(not \alpha, \beta
)
Usage
update_gamma(k, theta, priors = list(), alternate_priors = FALSE)
Arguments
k |
Double value for |
theta |
Double value for |
priors |
An optional list object that contains k0 and
theta0. Otherwise the function will use |
alternate_priors |
Boolean Defaults to FALSE. Allows a user to specify alternate prior names so the same prior isn't required when multiple gamma distributions are used. |
Value
A list object that contains 'k' and 'theta'
Examples
update_gamma(k = 1, theta = 100, priors = list(k0 = 2, theta0 = 1000))
update_gamma(k = 10, theta = 200)
[Package grizbayr version 1.3.5 Index]