Last chance! 50% off unlimited learning
Sale ends in
#import lme4 package and lmerTest package
library(lmerTest)
#import carrots data from lmerTest package
data(ham)
m <- lmer(Informed.liking ~ Product + Information
+ Gender+ (1|Consumer) + (1|Product:Consumer), data=ham)
#elimination of non-significant effects
s <- step(m)
#plot of post-hoc analysis of the final model
plot(s)
Run the code above in your browser using DataLab