Skip to contents

Creates a mixture of two Normal distributions. Since tau is a scale parameter, this must be wrapped in distributional::dist_truncated() with lower = 0 before passing to shrink():

Usage

prior_spike_slab(
  spike_location = 0,
  spike_scale = 0.01,
  slab_scale = 1,
  spike_prob = 0.5
)

Arguments

spike_location

Location of the spike (default 0)

spike_scale

Scale of the spike component (default 0.01)

slab_scale

Scale of the slab component (default 1)

spike_prob

Probability of the spike component (default 0.5)

Value

A spike-and-slab mixture distribution

Details

tau_prior <- dist_truncated(prior_spike_slab(), lower = 0)

Examples

tau_prior <- distributional::dist_truncated(
  prior_spike_slab(spike_prob = 0.5, spike_scale = 0.01, slab_scale = 1),
  lower = 0
)