<html><head></head><body><div class="ydp7ffce779yahoo-style-wrap" style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><div class="inserted" dir="ltr" data-setdir="false"><div><p style="margin: 0px 0px 6px; font-family: Helvetica, Arial, sans-serif; color: rgb(29, 33, 41); font-size: 14px;">Boa tarde!</p><p style="margin: 6px 0px; font-family: Helvetica, Arial, sans-serif; color: rgb(29, 33, 41); font-size: 14px;">Tem como inverter a ordem do contraste que vem por padrão na função glht do pacote multcomp? Digo inverter para bater com o padrão do resultado do summary(fit) onde coloca t1-t2 e não t2 - t1 como fica no objeto p.</p><p style="margin: 6px 0px; font-family: Helvetica, Arial, sans-serif; color: rgb(29, 33, 41); font-size: 14px;">dados <- read.table("<a href="https://l.facebook.com/l.php?u=http%3A%2F%2Fwww.leg.ufpr.br%2F%7Epaulojus%2Fdados%2Fexemplo01.txt%3Ffbclid%3DIwAR2krDEvOI3rtXw4xASIrG0AxtCOmoRmbY0gt0SGuBk-7g3PhQcb3fS8o9o&h=AT3yPMcJkTSq7ku8iquqWH8fXOHRd76dpt80tMGemb1IX4c-yDBvcK2kBDS9NehkvTxIwEZkPdQWWtusjgFnfpytgzMKEyTEuIfdENjzZl7RO8VxxlRP3fhEUIwedOiNIZlwR5o_3H0" data-ft="{tn:-U}" data-lynx-mode="asynclazy" style="color: rgb(56, 88, 152); cursor: pointer; font-family: inherit;" rel="nofollow" target="_blank">http://www.leg.ufpr.br/~paulojus/dados/exemplo01.txt</a>", head = T)</p><div class="ydpa602e533text_exposed_show inserted" style="display: inline; font-family: Helvetica, Arial, sans-serif; color: rgb(29, 33, 41); font-size: 14px;"><p style="margin: 0px 0px 6px; font-family: inherit;">attach(dados)</p><p style="margin: 6px 0px; font-family: inherit;">boxplot(resp~trat, col=8)</p><p style="margin: 6px 0px; font-family: inherit;">hist(resp, col=8)</p><p style="margin: 6px 0px; font-family: inherit;">fit=glm(resp~trat, family = Gamma)</p><p style="margin: 6px 0px; font-family: inherit;">summary(fit)</p><p style="margin: 6px 0px; font-family: inherit;">require(multcomp)</p><p style="margin: 6px 0px; font-family: inherit;">p <- glht(fit, linfct = mcp(trat = "Tukey"))</p><div style="margin: 6px 0px; font-family: inherit;">plot(p, main= "", xlab = "")</div><div style="margin: 6px 0px; font-family: inherit;" class="inserted"><br></div><p style="margin: 6px 0px; font-family: inherit;"><span style="font-family: inherit;">obg</span></p></div></div><br></div><div class="inserted" dir="ltr" data-setdir="false">att.</div><div class="ydp7ffce779signature">André <br></div></div></body></html>