Skip to content

Specifies a Gamma(shape, rate) prior for positive scale parameters such as the diagonal elements of the precision matrix. The default gamma_prior(1, 1) corresponds to an Exponential(1) distribution.

Usage

gamma_prior(shape = 1, rate = 1)

Arguments

shape

Positive numeric. Shape parameter of the Gamma distribution. Default: 1.

rate

Positive numeric. Rate parameter of the Gamma distribution. Default: 1.

Value

An object of class "bgms_scale_prior" with family = "gamma".

Examples

gamma_prior()
#> Scale prior: Gamma(shape = 1, rate = 1)
gamma_prior(shape = 2, rate = 0.5)
#> Scale prior: Gamma(shape = 2, rate = 0.5)