id="user-defined-function-with-_log-suffix" class="section level2">
<h2 number="13.7"><span class="header-section-number">13.7</span> User-Defined Function with <code>_log</code> Suffix</h2>
<p><em>Deprecated</em>: A user-defined function ending in <code>_log</code> can
be used in sampling statements, with</p>
<pre><code>y ~ foo(...);</code></pre>
<p>having the same effect as</p>
<pre><code>target += foo_log(y, ...);</code></pre>
<p><em>Replacement</em>: Replace the <code>_log</code> suffix with <code>_lpdf