I didn’t use a Gibbs sampler but they seem useful. This article has some JAGS code you can check out. I actually used a python sampler called emcee. It’s nice for simpler fits, but gets messy when you have complicated priors and such. For the most part I was doing “simple” linear fits and I followed Hogg’s approach (look in section 8). There’s some article by Kelly in 2007 that goes over this also but that one is already dated.
Posterior distributions from samplers are really fun to play with.
I didn’t use a Gibbs sampler but they seem useful. This article has some JAGS code you can check out. I actually used a python sampler called emcee. It’s nice for simpler fits, but gets messy when you have complicated priors and such. For the most part I was doing “simple” linear fits and I followed Hogg’s approach (look in section 8). There’s some article by Kelly in 2007 that goes over this also but that one is already dated.
Posterior distributions from samplers are really fun to play with.