7" aria-hidden="true" tabindex="-1"></a>    cov_term_x_sum <span class="ot">&lt;-</span> cov_term_x[[z<span class="sc">+</span><span class="dv">1</span>]]</span>
<span id="cb6-58"><a href="#cb6-58" aria-hidden="true" tabindex="-1"></a>    <span class="cf">if</span>(<span class="fu">ncol</span>(focal.cov.matrix) <span class="sc">&gt;</span> <span class="dv">1</span>){</span>
<span id="cb6-59"><a href="#cb6-59" aria-hidden="true" tabindex="-1"></a>      <span class="cf">for</span>(v <span class="cf">in</span>