Skip to main content
. Author manuscript; available in PMC: 2015 Jan 1.
Published in final edited form as: J Comput Graph Stat. 2013 Apr 28;23(2):543–563. doi: 10.1080/10618600.2013.791193
Algorithm 2: Univariate Factor Slice Sampling Update Algorithm for β ∈ ℝK with density proportional to f(β). Note: ηk ∈ ℝ1 is a parameter in the orthogonalized space. The basis vectors, Γk ∈ ℝK are chosen as eigenvectors of the covariance matrix of β.
1. Sample h(i) ∼ Uniform on {0, f(β(i−1))}
2. Set β(*) = β(i−1)
3. For each basis vector ΓkΓ:
 (a) Sample ηk(i)Uniform onA={ηk:f(ηkΓk+β())h(i)}
  (b) Update β()=β()+ηk(i)Γk
4. Set β(i) = β(*)