als" class="anchor"></a>Higher-level residuals</h3>
<p>To access higher-level residuals, we can set the <code>level</code> parameter to a grouping factor as defined in <code><a href="https://rdrr.io/r/base/names.html">names(object@flist)</a></code> in <code>lme4</code> or in <code><a href="https://rdrr.io/r/base/names.html">names(object$groups)</a></code> in <code>nlme</code>.</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="fu"><a href="https:/