Problem solved: Lesson learned (I think):
TukeyHSD doesn't like it when you use numbers as names for the factors. ie factor "time" cannot be "24" and "48" but "twenty-four" and "forty-eight" work fine. On Tue, Oct 20, 2009 at 5:36 PM, Clayton Coffman <clayton.coff...@gmail.com>wrote: > I've tried that as well, and I get an error like: > > TukeyHSD(phenolic.aov) > >Error in rep.int(n, length(means)) : unimplemented type 'NULL' in 'rep' > >In addition: Warning messages: > >1: In replications(paste("~", xx), data = mf) : non-factors ignored: time > >2: In replications(paste("~", xx), data = mf) : > > non-factors ignored: sink.status, time > >3: In replications(paste("~", xx), data = mf) : > > non-factors ignored: time, cat > >4: In replications(paste("~", xx), data = mf) : > >non-factors ignored: sink.status, time, cat > > however, I think its a problem with my data, something about how Rexcel > imported it, becuase when I do it on the example data in the HSAUR package, > it works.... > > I'll try importing the data manually. > > > > > On Tue, Oct 20, 2009 at 3:33 PM, Ista Zahn > <istaz...@gmail.com<https://mail.google.com/mail?view=cm&tf=0&to=istaz...@gmail.com> > > wrote: > >> Hi Clayton, >> I don't think you need summary(). >> >> TukeyHSD(data1.aov) >> >> should work. >> >> -Ista >> >> On Tue, Oct 20, 2009 at 4:17 PM, Clayton Coffman >> <clayton.coff...@gmail.com<https://mail.google.com/mail?view=cm&tf=0&to=clayton.coff...@gmail.com>> >> wrote: >> > I can prove I've done this before, but I recently installed Rexcel (and >> it >> > was easiest to reinstall R and some other bits to make it work) and now >> its >> > no longer working. >> > >> > Before I would do an ANOVA and a tukey post-hoc like this: >> > >> >>data1.aov=aov(result~factor1*factor2, data=data1) >> > >> > then... >> > >> >>TukeyHSD(summary(data1.aov)) >> > >> > and it would give me a nice tukey table of all the pairwise comparisons, >> now >> > though it gives me: >> > >> >>in UseMethod("TukeyHSD") : no applicable method for "TukeyHSD" >> > >> > Has something changed? Does TukeyHSD no longer accept aov results? >> > >> > Is there a package I'm missing? I am very frustrated. >> > >> > Thanks, >> > Clayton >> > >> > [[alternative HTML version deleted]] >> > >> > ______________________________________________ >> > R-help@r-project.org<https://mail.google.com/mail?view=cm&tf=0&to=r-h...@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. >> > >> >> >> >> -- >> Ista Zahn >> Graduate student >> University of Rochester >> Department of Clinical and Social Psychology >> http://yourpsyche.org >> > > [[alternative HTML version deleted]] ______________________________________________ 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 and provide commented, minimal, self-contained, reproducible code.