Description Usage Arguments Details Value Author(s)
Generate n samples from the spike-slab normal prior, a mixture of a normal slab and point mass spike at zero
1 | rss_nonzero(n, p, mu, tau)
|
n |
number of samples to generate |
p |
proportion of zeros |
tau |
standard deviation of normal (slab) prior |
theta ~ p * 1(theta = 0) + (1 - p) * N(theta; 0, tau^2)
n samples from the spike-and-slab prior
Spencer Woody
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.