[R] Post hoc test for lm() or glm() ?

2012-02-02 Thread Mark Na
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

Re: [R] Post hoc test for lm() or glm() ?

2012-02-02 Thread Frank Harrell
The R multcomp package provides one general approach to multiplicity correction. For general contrasts in lm and glm, the rms package's ols and Glm functions make this even easier to use. Frank Mark Na wrote Hi R-helpers, TukeyHSD() works for models fitted with aov(), but could anyone

Re: [R] Post hoc test for lm() or glm() ?

2012-02-02 Thread Richard M. Heiberger
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 mtb...@gmail.com wrote: Hi R-helpers, TukeyHSD() works for models fitted with aov(), but could anyone

Re: [R] Post hoc test for lm() or glm() ?

2012-02-02 Thread Mark Na
Thank you Richard and Frank for your very quick and helpful replies. Cheers, Mark On Thu, Feb 2, 2012 at 2:58 PM, Frank Harrell f.harr...@vanderbilt.edu wrote: The R multcomp package provides one general approach to multiplicity correction.  For general contrasts in lm and glm, the rms