will not overflow.</p>
<section id="stan-program" class="level3 unnumbered">
<h3 class="unnumbered anchored" data-anchor-id="stan-program">Stan program</h3>
<p>To evaluate the log predictive density of a model, it suffices to implement the log predictive density of the test data in the generated quantities block. The log sum of exponentials calculation must be done on the outside of Stan using the posterior draws of <span class="math inline">\(\log p(\tilde{y} \mid \tilde{x},
\theta^{(m)}).\)</span></p>
<p>