Re: [R] TukeyHSD troubles

2015-07-17 Thread tdiver
Bart, I want to thank you for your code. I was having similar problems as Amy, even after setting my numeric variable as a factor using as.factor(). I used is.factor() to confirm and received the answer as TRUE from R; however after running the TukeyHSD() my set factor in my aov() was not read

Re: [R] TukeyHSD troubles

2012-06-11 Thread jhartsho
Thanks! I was having the same issue. my treatments were 'days' so they were in intervals of 15 days. My anova was fine but I couldn't get my tukey to produce results. Used your code and it worked. -- View this message in context:

[R] TukeyHSD troubles

2010-02-25 Thread Amy Freitag
I've tried to run a Tukey post-hoc but keep getting this weird error, whether the aov was significant or not. treat_code is a dummy variable, but that shouldn't matter. Any suggestions? Thanks Amy summary(aov(EtoH~treat_code, mydata)) Df Sum Sq Mean Sq F value Pr(F) treat_code

Re: [R] TukeyHSD troubles

2010-02-25 Thread RICHARD M. HEIBERGER
treat_code is a dummy variable, but that shouldn't matter.  Any suggestions? It does matter to TukeyHSD. If treat_code is a numeric variable with discrete values 0 and 1, then it does not have class factor. It is true that aov will give the same ANOVA table for a two-level factor as for a

Re: [R] TukeyHSD troubles

2010-02-25 Thread Bart Joosen
treat_code isn't a factor, but a numeric variable. You should use: summary(aov(EtoH~as.factor(treat_code), mydata)) TukeyHSD(aov(EtoH~as.factor(treat_code), mydata)) Bart -- View this message in context: http://n4.nabble.com/TukeyHSD-troubles-tp1570205p1570228.html Sent from the R help