you when observations with zero neighbors or <code>NA</code> values have been dropped.</p></dd>


<dt>na.rm</dt>
<dd><p>If <code>na.rm = TRUE</code>, observations with <code>NA</code> values will be dropped from both <code>x</code> and <code>w</code>.</p></dd>

</dl></div>
    <div id="value">
    <h2>Value</h2>
    

<p>The Moran coefficient, a numeric value.</p>
    </div>
    <div id="details">
    <h2>Details</h2>
    <p>The formula for the Moran coefficient (MC) is
$$MC = \frac{n}{K}\frac{\sum_i \sum_j