Using the Śsleepstudyą dataset, I find this plotŠ

library(ggplot2)
ggplot(sleepstudy, aes(Days, Reaction, group=Subject, colour=Subject)) +
geom_point() + geom_path()

Šreally help me understand this modelŠ

library(lme4)
(m1 <- lmer(Reaction ~ Days + (1 | Subject), sleepstudy))

However, I cannot wrap my head round how to visualise this modelŠ

(m2 <- lmer(Reaction ~ Days + Subject + (1 | Subject), sleep study))

Šin which ąSubjectą is specified as both a fixed effect and mixed effect.
Any clues as to how to plot this model?

Thanks
Ross





	[[alternative HTML version deleted]]

