If I have a data frame containing columns Width, Length, Colour. With the values in colour - red, blue, green.
I am using the following regression:
lm(Width~Length+Colour, df)
I would like to change the reference level of the dummy variable to green.