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
p
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:
http://r.789695.n4.nabble.com/TukeyHSD-troubles-tp1570205p463304
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 mailin
> 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
4 matches
Mail list logo