The glht function in the multcomp package is what you are looking for.
There are additional examples in the ?MMC help file in the HH package.

Rich

On Thu, Feb 2, 2012 at 3:42 PM, Mark Na <mtb954@gmail.com> wrote:

> Hi R-helpers,
>
> TukeyHSD() works for models fitted with aov(), but could anyone point
> me to a function that performs a similar post hoc test for models
> fitted with lm() or glm()?
>
> Thanks in advance,
>
> Mark
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

