On Sat, Oct 28, 2017 at 08:11:51PM +0000, CHIRIBOGA Xavier wrote: >> treatment<-relevel(treatment,ref="Db") Never used relevel myself, but shouldn't this line be instead this one? T1$treatment <- relevel(T1$treatment, ref = "Db") Cheers, JMM.