rss: rss

Description Usage Arguments Details Value Author(s)

View source: R/rss.R

Description

Generate n samples from the spike-slab normal prior, a mixture of a normal slab and point mass spike at zero

Usage

1
rss(n, p, tau)

Arguments

n

number of samples to generate

p

proportion of zeros

tau

standard deviation of normal (slab) prior

Details

theta ~ p * 1(theta = 0) + (1 - p) * N(theta; 0, tau^2)

Value

n samples from the spike-and-slab prior

Author(s)

Spencer Woody


spencerwoody/saFAB documentation built on Feb. 18, 2020, 5:56 a.m.