# NOT RUN {
#import lme4 package and lmerTest package
library(lmerTest)
#lmer model with correlation between intercept and slopes
#in the random part
m <- lmer(Preference ~ sens2+Homesize+(1+sens2|Consumer), data=carrots)
# table with p-values for the random effects
rand(m)
# }
# NOT RUN {
<!-- % R documentation directory. -->
# }
# NOT RUN {
<!-- %%\keyword{ ~kwd1 } -->
# }
# NOT RUN {
<!-- %%\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line -->
# }
Run the code above in your browser using DataLab