powered by
ref
contr.treatment
relevel(x, ref, ...)
x
factor
levels
reorder
warpbreaks$tension <- relevel(warpbreaks$tension, ref = "M") summary(lm(breaks ~ wool + tension, data = warpbreaks))
Run the code above in your browser using DataLab