n
\\[4pt]
&amp; = &amp; \hat{\alpha} + \hat{\beta} \cdot \tilde{x}_n.
\end{eqnarray*}\]</span></p>
<p>In Stan, only the first of the two steps (the important variance reduction step) can be coded in the object model. The linear predictor is defined in the generated quantities block.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode stan code-with-copy"><code class="sourceCode stan"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="kw">data</span> {</span>
<span id