GAMLj: Specifying Crossed vs. Nested Models?
Posted: Wed Feb 19, 2020 6:12 pm
Dear Marcello,
Let me start by saying that I love the GAMLj module and Jamovi as a whole. Keep up the good work!
My question is about crossed vs. nested mixed model designs in GAMLj. In lme4 syntax, it is possible to specify whether to use crossed or nested mixed models when using 2 or more random intercepts.
For example, a crossed design (responses nested within 2 parallel clusters) would be this:
1) Y ~ 1 + X + ( 1 | ClusterA) + (1 | ClusterB)
While a nested design (Level 3 = Cluster B, Level 2 = Cluster A) would be this:
2) Y ~ 1 + X + ( 1 | ClusterB/ClusterA)
It seems as though GAMLj always employs the crossed syntax from model 1 above. Is there a way to explicitly specify nested models? Based on the discussion at https://stats.stackexchange.com/questio ... -specified, it seems that the workaround involves changing the ClusterA labels, but would it also be possible to specify this in the GAMLj menu to avoid this recoding?
Thanks again for your excellent platform and module!
Let me start by saying that I love the GAMLj module and Jamovi as a whole. Keep up the good work!
My question is about crossed vs. nested mixed model designs in GAMLj. In lme4 syntax, it is possible to specify whether to use crossed or nested mixed models when using 2 or more random intercepts.
For example, a crossed design (responses nested within 2 parallel clusters) would be this:
1) Y ~ 1 + X + ( 1 | ClusterA) + (1 | ClusterB)
While a nested design (Level 3 = Cluster B, Level 2 = Cluster A) would be this:
2) Y ~ 1 + X + ( 1 | ClusterB/ClusterA)
It seems as though GAMLj always employs the crossed syntax from model 1 above. Is there a way to explicitly specify nested models? Based on the discussion at https://stats.stackexchange.com/questio ... -specified, it seems that the workaround involves changing the ClusterA labels, but would it also be possible to specify this in the GAMLj menu to avoid this recoding?
Thanks again for your excellent platform and module!