r generating functions is restricted to the
transformed data and generated quantities blocks; attempts to use them
elsewhere will result in a parsing error with a diagnostic message.
They may also be used in the bodies of user-defined functions whose
names end in <code>_rng</code>.</p>
<p>This allows the random number generating functions to be used for
simulation in general, and for Bayesian posterior predictive checking
in particular.</p>
</div>
<div id="posterior-predictive-checking" class="section level