enerated quantities</code></h2>
<p>The <code>generated quantities</code> program block is rather different than
the other blocks. Nothing in the generated quantities block affects
the sampled parameter values. The block is executed only after a
sample has been generated.</p>
<p>Among the applications of posterior inference that can be coded in the
generated quantities block are</p>
<ul>
<li>forward sampling to generate simulated data for model testing,</li>
<li>generating predictions for new data,</li>
<li>