Skip to content
Prev 366900 / 398502 Next

Error in mcp2matrix(model, linfct = linfct)

Problem: Error in mcp2matrix(model, linfct = linfct)

Post hoc test is not working. Does anyone know what I did wrong?

modmisto<-lme(Cobertura~Tratamento, random=~1|Parcela, data=Cover_BraquiT3) summary(modmisto)

tukey<-glht(modmisto, mcp(Tratamento="Tukey")) Error in mcp2matrix(model, linfct = linfct) : Variable(s) ?Tratamento? of class ?character? is/are not contained as a factor in ?model?.
Some translations if necessary: cobertura=cover, tratamento=treatment, parcela=plot

I have 4 treatments being tested.

Any help with this will be very appreciated!

Thank you