> str(mydata$Language_used_FODs) chr [1:3520] "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" "Turkish" ... > mydata$Language_used_FODs <- factor(mydata$Language_used_FODs) > library(multcomp) > glht1 <- glht(model, linfct = mcp(Language_used_FODs="Tukey")) Error in mcp2matrix(model, linfct = linfct) : Variable(s) ‘Language_used_FODs’ of class ‘character’ is/are not contained as a factor in ‘model’. this did not solve the problem. please solve this problem
fix invalid codeTue, 18 Apr 2023