I am trying to understand the basics of stan and stumbled upon this reply. It’s been years this post was last active but hoping to get an answer anyway. Why do you have multiple “model block” statements printed if it runs after every sample drawn? For each iteration, shouldn’t it be just one “model block” followed by one “generated quantities block” and so on? Or is it because of samples getting rejected? Thank you.