I am trying to reorder factors in a simple lm/aov, so I can vary the intercept.
I have tried various functions to reorder but the lm always defaults to the same intercept (the most significant). To give context have growth plants under 3 treatments, High, Med and Low nutrients
growth1<-aov(log(size)~treat,DF)
I have tried relevel()
relevel(DF$treat, ref = "Low")
creating a DF where ordering is false
DF$treat <- factor( DF$treat , ordered = FALSE )
rearranging
arrange(DF,desc(treat))
and finally creating an entirely new .csv
But the High treatment is always the intercept irrespective of the order. I want to look at the treatment effects relative to Low nutrients. I know I can do post hoc with Tukeys to get the interactions but am interested in just using the lm comparisons. Clearly it is to do with the lm/aov (I have done both). Wondering if anyone can help point out what I am missing here? I know, clearly something very fundamental.....