<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1512132930165_29076"><span id="yui_3_16_0_ym19_1_1512132930165_29154">Olá,</span></div><div id="yui_3_16_0_ym19_1_1512132930165_29076"><span><br></span></div><div id="yui_3_16_0_ym19_1_1512132930165_29076" dir="ltr"><span id="yui_3_16_0_ym19_1_1512132930165_29373">estou tentando rodar análises de regressão separando por sexo (</span>data=reg[reg$sexo == 1, ]) e resulta no seguinte erro:</div><div id="yui_3_16_0_ym19_1_1512132930165_29076" dir="ltr"><span><br></span></div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29361">GLM.2 <- glm(dent ~ idcat2, family=binomial(logit), data=reg[reg$sexo == 1, ])</div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29361"><br></div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29362">Error in model.frame.default(formula = dent ~ idcat2, data = reg[reg$sexo == : </div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29363"> comprimentos das variáveis diferem (encontradas em 'idcat2')</div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29363"><br></div><div style="margin-bottom: 0cm; line-height: 100%" dir="ltr" id="yui_3_16_0_ym19_1_1512132930165_29363">Alguma dica?</div><div></div><div id="yui_3_16_0_ym19_1_1512132930165_29075"> </div><div class="signature" id="yui_3_16_0_ym19_1_1512132930165_29043"><div style="color:rgb(34, 34, 34);font-family:arial, sans-serif;font-size:small;background-color:rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1512132930165_29042"><div id="yui_3_16_0_ym19_1_1512132930165_29041"><b style="font-family:Arial;font-size:16px;color:rgb(56, 118, 29);" id="yui_3_16_0_ym19_1_1512132930165_29074"> </b></div></div><div id="yui_3_16_0_ym19_1_1512132930165_29073">_________________________________________<br>Luciane Maria Pilotto<br><br></div></div></div></body></html>