ith-copy"><code class="sourceCode stan"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="kw">target +=</span> log(fmax(<span class="fl">0.0</span>,<span class="dv">1</span> - abs(y)));</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>With the constraint on <code>y</code> in place, this is just a less efficient, slower, and less arithmetically stable version of the original program. But if the constraint on <