Saeed Ahmadi
2009-Feb-19 16:51 UTC
[R] Doing pairwise comparisons using either Duncan, Tukey or LSD
Hi, I have a basic and simple question on how to code pairwise (multiple) mean compariosn between levels of a factor using one of the Duncan, Tukey or LSD. Thanks in advance, Saeed -- View this message in context: http://www.nabble.com/Doing-pairwise-comparisons-using-either-Duncan%2C-Tukey-or-LSD-tp22104786p22104786.html Sent from the R help mailing list archive at Nabble.com.
Chuck Cleland
2009-Feb-19 18:20 UTC
[R] Doing pairwise comparisons using either Duncan, Tukey or LSD
On 2/19/2009 11:51 AM, Saeed Ahmadi wrote:> Hi, > > I have a basic and simple question on how to code pairwise (multiple) mean > compariosn between levels of a factor using one of the Duncan, Tukey or LSD.Here is one approach: library(multcomp) summary(glht(lm(Petal.Width ~ Species, data = iris), linfct mcp(Species = "Tukey")))> Thanks in advance, > Saeed-- Chuck Cleland, Ph.D. NDRI, Inc. (www.ndri.org) 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894
Kingsford Jones
2009-Feb-19 18:43 UTC
[R] Doing pairwise comparisons using either Duncan, Tukey or LSD
try: example(TukeyHSD) hth, Kingsford Jones On Thu, Feb 19, 2009 at 9:51 AM, Saeed Ahmadi <ahmadi_saeed at yahoo.com> wrote:> > Hi, > > I have a basic and simple question on how to code pairwise (multiple) mean > compariosn between levels of a factor using one of the Duncan, Tukey or LSD. > > Thanks in advance, > Saeed > -- > View this message in context: http://www.nabble.com/Doing-pairwise-comparisons-using-either-Duncan%2C-Tukey-or-LSD-tp22104786p22104786.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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 > and provide commented, minimal, self-contained, reproducible code. >