iv class="hidden name"><code>grad.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>A function that computes the gradient of the for a logistic
 regression model. Used by <code><a href='https://rdrr.io/r/stats/optim.html'>optim</a></code> on occasion.</p>
    </div>

    <pre class="usage"><span class='fu'>grad</span>(<span class='no'>beta</span>, <span class='no'>Y</span>, <span class='no'>X</span>)</pre>

    <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>A