I have some confusion regarding multilevel %between% (TWOLEVEL) commands. Which do not run. Whenever I try to add between level in my syntax it says "*** ERROR

One or more between-level variables have variation within a cluster for

one or more clusters. Check your data and format statement".

I have tried to google and read different books, syntax etc. but same error occurs. What's wrong with the syntax? (e.g.). And it doesn't run till I add ID in within.

USEVARIABLES ARE

Sup_ID Sector Ind OP ID;

WITHIN ARE Sector Ind OP;

BETWEEN ARE ID

CLUSTER = Sup_ID;

ANALYSIS: TYPE = TWOLEVEL;

ESTIMATOR = ML

MODEL: %WITHIN%

ID ON Sector;

ID ON Ind;

%BETWEEN%

ID ON OP;

More Mamoona Arshad's questions See All
Similar questions and discussions