Re: [R] Order output list od TukeyHSD function by "p adj"

2016-02-24 Thread Sergio Fonda
Texas A&M University > College Station, TX 77840-4352 > > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Sergio > Fonda > Sent: Wednesday, February 24, 2016 6:47 AM > To: Jim Lemon > Cc: r-help@r-project.org > Subject: Re

Re: [R] Order output list od TukeyHSD function by "p adj"

2016-02-24 Thread David L Carlson
gy Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Sergio Fonda Sent: Wednesday, February 24, 2016 6:47 AM To: Jim Lemon Cc: r-help@r-project.org Subject: Re: [R] Order output list od TukeyHSD

Re: [R] Order output list od TukeyHSD function by "p adj"

2016-02-24 Thread Sergio Fonda
Thank you Jim also for introducing a shorter data frame. However the HSD output I deal with is derived from a crossing factors condition. Could you kindly explain how could I sort results obtained from a fm1 <- aov(breaks ~ wool * tension, data = warpbreaks) hsd.fit<-TukeyHSD(fm1, "wool:tension",

Re: [R] Order output list od TukeyHSD function by "p adj"

2016-02-23 Thread Jim Lemon
Hi Sergio, I couldn't get your example data to read in, so I have used the example in the help page: fm1 <- aov(breaks ~ wool + tension, data = warpbreaks) hsd.fit<-TukeyHSD(fm1, "tension", ordered = TRUE) hsd.fit$tension[order(hsd.fit$tension[,4]),] difflwr upr p adj L-

[R] Order output list od TukeyHSD function by "p adj"

2016-02-23 Thread Sergio Fonda
Hello, It's already for several hours that I try to order the list obtained by the function TukeyHSD according to the variable "p adj" (in ascending order). Unfortunately, without success. In addition to following two lines of code, that offer the result but separately so do not correspond to the