</pre></div>
<p>For both models, classroom is nested within school. We can access the grouping factors for each model with the following:</p>
<div class="sourceCode" id="cb12"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="co"># lme4</span>
<span class="fu"><a href="https://rdrr.io/r/base/names.html">names</a></span><span class="op">(</span><span class="va">fm2.lmer</span><span class="op">@</span><span class="va">flist</span><span class="op">)</span>
<span class="co">#&gt; [1] "c