Skip to content

Specifies a Beta-Bernoulli prior for inclusion indicators. The inclusion probability is drawn from a \(\textrm{Beta}(\alpha, \beta)\) distribution and shared across all edges.

Usage

beta_bernoulli_prior(alpha = 1, beta = 1)

Arguments

alpha

Positive numeric. First shape parameter of the Beta distribution. Default: 1.

beta

Positive numeric. Second shape parameter of the Beta distribution. Default: 1.

Value

An object of class "bgms_indicator_prior" with family = "Beta-Bernoulli".

Examples

beta_bernoulli_prior()
#> Edge prior: Beta-Bernoulli(alpha = 1, beta = 1)
beta_bernoulli_prior(alpha = 2, beta = 5)
#> Edge prior: Beta-Bernoulli(alpha = 2, beta = 5)