<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:14pt"><div class="" style=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;">Bom dia amigos da lista.</span><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class="">Estou tentando ajustar um modelo linear misto a um conjunto de dados (didático), em que Arvore foi considerado como aleatório e Local fixo. Veja os dados e CMR:<br class="" style=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><div class="" style="">> dados</div><div class="" style="">  Altura Local Arvore</div><div class="" style="">1     87     1      1</div><div class="" style="">2     84     2      2</div><div class="" style="">3
     75     2      3</div><div class="" style="">4     90     1      4</div><div class="" style="">5     79     2      5</div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class="">CMR:<br class="" style=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><div class="" style="">require(lme4)</div><div class="" style="">misto = lmer(Altura ~ Local +(1| Arvore), dados) </div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class="">Mas, a seguinte
 mensagem de erro aparece:</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><div class="" style="">Error in checkNlevels(reTrms$flist, n = n, control) : </div><div class="" style="">  number of levels of each grouping factor must be < number of observations</div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><br class="" style=""></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class="">Alguém saberia dizer como corrigir este problema?</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class="">Grato.</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px" class=""><br></div><div style="color: rgb(34, 34,
 34); font-family: arial, sans-serif; font-size: 13px" class="">Elton.</div></div></body></html>