prior_mixture creates a mixture of prior distributions. This is a more generic version of the prior_spike_and_slab function.

prior_mixture(
  prior_list,
  is_null = rep(FALSE, length(prior_list)),
  components = NULL
)

Arguments

prior_list

a list of prior distributions to be mixed.

is_null

a logical vector indicating which of the prior distributions should be considered as a null distribution. Defaults to rep(FALSE, length(prior_list)).

components

a character vector indicating which of the prior distributions belong to the same mixture component (this is an alternative specification to the is_null argument). Defaults to NULL (i.e., is_null is used.

See also