<font face="Trebuchet MS">Gilson,<br><br>Se essa anova apresentar interação significativa, então trabalhe na comparação de médias/efeitos (ou contrastes) de um fator dentro dos demais fatores. Se ela for não significativa, então não declare a fonte de variação interação (ela será somada para o resíduo) e faça teste de hipóteses sobre os efeitos principais<br>
<br><span style="font-family: courier new,monospace;">anova.ptf <- lm(ptf ~ rep+subst*cult, data=dados)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">anova(anova.ptf)</span><br>
<br>Você só vai usar esses procedimentos abaixo se não houver interação. O primeiro é o teste de Tukey. O segundo são contrastes de Tukey (todos 2 a 2 possíveis) mas a correção para o p-valor não envolve os procedimentos do teste de Tukey, e sim é usado o single-step method.<br>
<br style="color: rgb(0, 0, 0);"></font><font style="color: rgb(0, 0, 0); font-family: courier new,monospace;" face="Trebuchet MS"># Compração de médias (Tukey 5% de probabilidade)<br>compara1 <- HSD.test(anova.ptf, "subst")<br>
<br></font><div style="color: rgb(0, 0, 0); font-family: courier new,monospace;">require(multcomp)<br>
</div><div><font style="color: rgb(0, 0, 0);" face="Trebuchet MS"><span style="font-family: courier new,monospace;">summary(glht(anova.ptf, linfct=mcp(subst="Tukey")))</span><br><br>A mensagem de erro abaixo<br>
<br></font><font><font face="Trebuchet MS"><font color="#ff0000"><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">Mensagens de aviso perdidas:</span><br style="color: rgb(0, 0, 0); font-family: courier new,monospace;">
<span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">In mcp2matrix(model, linfct = linfct) :</span><br style="color: rgb(0, 0, 0); font-family: courier new,monospace;"><span style="color: rgb(0, 0, 0); font-family: courier new,monospace;">  covariate interactions found -- default contrast might be inappropriate</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Aparece porque não há sentido em comparar efeitos principais na presença de interações. É por isso que você deve remover o termo interação do modelo se ela não for significativa.</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">No caso de interação, tente adaptar os procedimentos que eu coloquei nas Ridículas do LEG.</span><br style="color: rgb(0, 0, 0);"><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">À disposição.</span><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">Walmes.</span><br></font></font></font></div><div>

</div><br clear="all"><span style="font-family: trebuchet ms,sans-serif;">==========================================================================</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">Walmes Marques Zeviani</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W)</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">Departamento de Estatística - Universidade Federal do Paraná</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">fone: (+55) 41 3361 3573</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">VoIP: (3361 3600) 1053 1173</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">e-mail: <a href="mailto:walmes@ufpr.br" target="_blank">walmes@ufpr.br</a></span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">twitter: @walmeszeviani</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">homepage: <a href="http://www.leg.ufpr.br/%7Ewalmes" target="_blank">http://www.leg.ufpr.br/~walmes</a></span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">linux user number: 531218</span><br style="font-family: trebuchet ms,sans-serif;">
<span style="font-family: trebuchet ms,sans-serif;">==========================================================================</span><br>