a></code> for models fit by <code><a href="https://rdrr.io/pkg/nlme/man/lme.html" class="external-link">lme</a></code>.</p>
<p>The following sections describe the notation and measures used in the calculations.</p>
    </div>
    <div class="section level2">
    <h2 id="notation">Notation<a class="anchor" aria-label="anchor" href="#notation"></a></h2>



<p>Let \(\mathbf{X}\) be the model matrix in the multivariate linear model,
\(\mathbf{Y}_{n \times p} = \mathbf{X}_{n \times r} \boldsymbol{\beta}_{r \time