prior_spike_and_slab
creates a spike and slab prior
distribution corresponding to the specification in
Kuo and Mallick (1998)
(see
O'Hara and Sillanpää (2009)
for further details). I.e.,
a prior distribution is multiplied by an independent indicator with values
either zero or one.
a prior distribution for the parameter
a prior distribution for the inclusion probability. The
inclusion probability must be bounded within 0 and 1 range. Defaults to
prior("spike", parameters = list(location = 0.5))
which corresponds to 1/2
prior probability of including the slab prior distribution (but other prior
distributions, like beta etc can be also specified).
prior odds associated with a given distribution. The value is passed into the model fitting function, which creates models corresponding to all combinations of prior distributions for each of the model parameters and sets the model priors odds to the product of its prior distributions.
return an object of class 'prior'.