Who has done a “means separation” or “pairwise means comparison” or “post hoc test” before?
lsmeans statement in SAS)Means comparison doesn’t have to be a “two step” process
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 ilinkemmeans(model, pairwise ~ A | B, adjust = 'tukey')slice A*B / sliceby=B diff adjust=tukey