analysis: type = twolevel; model: %WITHIN% ! Model for Within effects follows LMX by A228 A229; ! LMX is a factor defined by A228 and A229 %BETWEEN% HUMSUPP by A193 A195 A197 A198 A202 A204 A205; HUMSUPN by A194 A196 A199 A203; LMX on HUMSUPN;
output: sampstat stdyx ;
* ERROR One or more between-level variables have variation within a cluster for one or more clusters. Check your data and format statement.
Between Cluster ID with variation in this variable Variable (only one cluster ID will be listed)
Maybe my understanding isn't clear, but what means "having variation within a cluster? It means that, for example, in cluster 3, all answers to A193 should be the same for all my respondants in Cluster 3?
Thanks. I tried and the error was gone. One thing i don't understand now. How can i test a level 2 variable impact on a level 1 variable. Exemple, Supervisor Support at Group Level impact on Satisfaction at individual level. I seem to be able to test on one level, Mplus ask me to chose one or another? If you look this syntax, i want to test Lmxb on HUMSUPN.
analysis: type = twolevel; %WITHIN% ! Model for Within effects follows LMXw by A228 A229; ! LMX is a factor defined by A228 and A229 %BETWEEN% ! Model for Within effects follows LMXb by A228 A229; ! LMX is a factor defined by A228 and A229 %WITHIN% HUMSUPN by A194 A196 A199 A203; %BETWEEN% ! Model for Between effects follows HUMSUPNb by A194 A196 A199 A203;