be vectorized by row. Writing it so that it is vectorized
can speed up the calculation. See examples.</p>
    </div>
    <div class="section level2">
    <h2 id="boundary-issues">Boundary issues<a class="anchor" aria-label="anchor" href="#boundary-issues"></a></h2>


<p>It is required to provide <code>psi_limits</code>, a vector of length 2 giving the
smallest and largest possible values that the function psi can take, e.g., <code>c(0, 1)</code>.
If the null hypothesis value psi0 is at one of the limits, it