I am trying to implement and copy the model in the example ‘1.5 Ache Hunting with Age Trends’ from the book Bayesian Ideas and Data Analysis (Christensen et al., 2010). I have attached the relevant example pages from the book and the dataset used.
I suspect that the issue may be relating to my Stan codes. Can someone please explain to me what I might be doing wrong? And what I can do to fix this?
Actually, I’m still getting similar convergence issues I had before when I re-run the updated code where “error” is now a vector. Sometimes there are no issues, and other times there are. What could be the reason for this? Is it to do with initial values?
Also, when the model converges, for the parameter means I am getting \beta_1=0.23, \beta_2=0.11, \beta_3=0.00. This happens to be very different to means in the attached paper, where the \beta_1=-0.7147, \beta_2=0.01368, \beta_3=0.002683. Is anyone able to replicate the results from the paper?