class="bi"></i></button></pre></div>
<p>This function is expected to return the value of the integrand evaluated at point <code>x</code>. The argument <code>xc</code> is used in definite integrals to avoid loss of precision near the limits of integration and is set to NaN when either limit is infinite (see the section on precision/loss in the chapter on Higher-Order Functions of the Stan Functions Reference for details on how to use this). The argument <code>theta</code> is used to pass in arguments of the 