<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Caro Edson,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span>segue um exemplo</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;">adi <- expand.grid(cult=gl(1,5,la=LETTERS[1]), fert=101)</div><div style="background-color: transparent;">fat <- expand.grid(cult=gl(5,5,la=LETTERS[2:6]), fert=seq(50,150,25))</div><div style="background-color: transparent;">da <- rbind(adi, fat)</div><div style="background-color:
 transparent;"><br></div><div style="background-color: transparent;">theta <- c(c(-194.29, -197.26, -197.85, -203.03, -190.20, -190.45),</div><div style="background-color: transparent;">           c(9.1797, 8.2686, 8.6437, 9.3438, 8.8773, 8.1872),</div><div style="background-color: transparent;">           c(-0.03382, -0.03479, -0.03632, -0.03341, -0.03597, -0.03675))</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">X <- model.matrix(~-1+cult/(fert+I(fert^2)), data=da)</div><div style="background-color: transparent;">da$eta <- X%*%matrix(theta)</div><div style="background-color: transparent;">da$y <- da$eta+rnorm(nrow(da),0,30)</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">require(lattice)</div><div style="background-color: transparent;">xyplot(y~fert|cult, data=da,
 type=c("p","a"))</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">da$Fert <- factor(da$fert) #??????</div><div style="background-color: transparent;">levels(da$Fert)</div><div style="background-color: transparent;">levels(da$cult)</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">m0 <- aov(y~cult*Fert, data=da)</div><div style="background-color: transparent;"><span></span></div><div style="background-color: transparent;">anova(m0)</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">obrigado.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style:
 normal;"><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><font face="times new roman, new york, times, serif">Alisson Lucrécio da Costa</font><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Edson Lira <edinhoestat@yahoo.com.br><br> <b><span style="font-weight: bold;">To:</span></b> "r-br@listas.c3sl.ufpr.br" <r-br@listas.c3sl.ufpr.br>; Alisson Lucrecio <alissonluc@yahoo.com.br> <br> <b><span style="font-weight:
 bold;">Sent:</span></b> Monday, July 15, 2013 12:33 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [R-br] Dados quantitativos em uma análise de variança<br> </font> </div> <div class="y_msg_container"><br><div id="yiv7415096025"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'lucida console', sans-serif; font-size: 12pt;"><div><span>Alisson, contextualize o seu problema.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span>Variáveis quantitativas podem ser categorizadas e tratadas como fatores.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color:
 transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'lucida console', sans-serif; background-color: transparent; font-style: normal;"><span>Depende do seu
 objetivo.</span></div><div></div><div> </div><div>Edson Lira<br>Estatístico<br>Manaus-Amazonas<br></div>  <div style="font-family: 'lucida console', sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">De:</span></b> Alisson Lucrecio <alissonluc@yahoo.com.br><br> <b><span style="font-weight:bold;">Para:</span></b> "r-br@listas.c3sl.ufpr.br" <r-br@listas.c3sl.ufpr.br> <br> <b><span style="font-weight:bold;">Enviadas:</span></b> Segunda-feira, 15 de Julho de 2013 10:48<br> <b><span style="font-weight:bold;">Assunto:</span></b> [R-br] Dados quantitativos em uma análise de variança<br> </font> </div> <div class="yiv7415096025y_msg_container"><br><div id="yiv7415096025"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman',
 'new york', times, serif; font-size: 12pt;"><div>Caro Colegas r-br,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Bom dia.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Eu estou com uma duvida sobre dados quantitativos numa análise de variância se eu os considero como quantitativo ou como fator?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:'times new
 roman', 'new york', times, serif;background-color:transparent;font-style:normal;">Obrigado.</div><div></div><div> </div><div><font face="times new roman, new york, times, serif">Alisson Lucrécio da Costa</font></div></div></div></div><br>_______________________________________________<br>R-br mailing list<br><a rel="nofollow" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br><a rel="nofollow" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a rel="nofollow" target="_blank" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div>  </div></body></html>