I've been running several mixed linear models in R. I use the lmer function from lmerTest. I also ran the same analyses (or so I thought) in JASP. JASP uses R behind the scenes and shows you the R code. It turns out that JASP constructs a different model (see 1 below) than I did (see 2 below).
Short question: What is the difference between the two model specifications below?
Model 1:
value ~ variable + (1 + variable | topic) + (1 + variable | ResponseId)
Model 2:
value ~ variable + (1|ResponseId) + (1|topic)
- value is a continuous dependent variable.
- variable and topic are within-subject random variables (factor)
- ResponseId is the subject id (factor)