ceCode stan code-with-copy"><code class="sourceCode stan"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="dt">real</span> beta(<span class="dt">real</span> x, <span class="dt">real</span> xc, <span class="dt">array</span>[] <span class="dt">real</span> theta, <span class="dt">array</span>[] <span class="dt">real</span> x_r, <span class="dt">array</span>[] <span class="dt">int</span> x_i) {</span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>  <sp