<div dir="ltr"><div style="font-size:10.666666984558105px"><font face="courier new, monospace">Boa tarde pessoal,</font></div><div style="font-size:10.666666984558105px"><font face="courier new, monospace"><br></font></div>
<div style="font-size:10.666666984558105px"><font face="courier new, monospace">Observando a ajuda da Transformação Box-Cox por meio do help(boxcox), vi que o objeto precisa ser da classe fórmula como no exemplo abaixo:</font></div>
<div style="font-size:10.666666984558105px"><font face="courier new, monospace"><br></font></div><div style="font-size:10.666666984558105px"><font face="courier new, monospace"><div>boxcox(Volume ~ log(Height) + log(Girth), data = trees,</div>
<div>       lambda = seq(-0.25, 0.25, length = 10))</div><div><br></div><div>Entretanto, no tutorial disponível na página: <a href="http://leg.ufpr.br/geoR/tutorials/ctc.R">http://leg.ufpr.br/geoR/tutorials/ctc.R</a></div>
<div>vi que para objetos da classe geodata é possível realizar o teste Box-Cox, se é que não me enganei:</div></font></div><div style="font-size:10.666666984558105px"><font face="courier new, monospace"><br></font></div><div style="font-size:10.666666984558105px">
<font face="courier new, monospace">### <code r></font></div><div style><font face="courier new, monospace" style><font size="1">ctc <- read.table("<a href="http://www.leg.ufpr.br/geoR/tutorials/datasets/ctc.dat">http://www.leg.ufpr.br/geoR/tutorials/datasets/ctc.dat</a>", head=T)</font><br>
</font></div><div style><font face="courier new, monospace" style><font size="1">require(geoR)<br></font></font></div><div style><font face="courier new, monospace" style><font size="1">ctc <- as.geodata(ctc)<br></font></font></div>
<div style><font face="courier new, monospace" style><font size="1"><div>require(MASS)</div><div>boxcox(ctc)</div></font></font></div><div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace">### </code></span><br>
</div><div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace"><br></span></div><div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace">É isso mesmo? Gostaria de entender como funciona o teste nos dois casos (fórmula e geodata).</span></div>
<div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace"><br></span></div><div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace">Desde já agradeço,</span></div>
<div style="font-size:10.666666984558105px"><span style="font-family:'courier new',monospace"><br></span></div><div><div dir="ltr"><div style="text-align:center"><font size="1"><i><b>Hélder Gramacho </b></i></font></div>
<div style="text-align:center"><font size="1">Recife-PE / </font><i style="font-size:x-small;color:rgb(51,51,255)"><div style="display:inline!important"><i><a href="mailto:agrohelder@hotmail.com" target="_blank">agrohelder@gmail.com</a></i></div>
</i></div><div style="text-align:center"><br></div></div></div>
</div>