If I perform a linear-mixed effects model using lsmeans, like this:
model <- lmer (variable ~ A * B + (1|C), data = data)
Where I found a significant main effect of "A", which has three levels. Then I performed a post-hoc test to compare the three levles using "lsmeans" package:
lsmeans (model, pairwise~A, adjust = "Tukey")
I am wondering does this post-hoc comparison also take the random factor "C" into consideration when comparing the levels of A?