Who has done a “means separation” or “pairwise means comparison” or “post hoc test” before?
lsmeans
statement in SAS)
lsmeans
statement, which is also implemented in R (multcomp::cld()
)\[\log a - \log b\]
\[e^{\log a - \log b} = \frac{e^{\log a}}{e^{\log b}} = \frac{a}{b}\]
emmeans(model, pairwise ~ treatment, type = 'response')
lsmeans treatment / diff ilink
emmeans(model, pairwise ~ A | B, adjust = 'tukey')
slice A*B / sliceby=B diff adjust=tukey