|
|
Different cluster size in TWOLEVEL an... |
|
Message/Author |
|
Gulcin posted on Saturday, March 11, 2017 - 3:01 pm
|
|
|
Hello, Is there anyway to define clusters in different sizes? For example, think a school with different number of students in classes. DATA: FILE = D:\Deneme\Deneme_CSV2.csv; VARIABLE: NAMES ARE okul noto gelir ODK; WITHIN = gelir; BETWEEN = gelir; CLUSTER = okul; ANALYSIS: TYPE = TWOLEVEL; ESTIMATOR = WLSM; MODEL: %WITHIN% noto ON gelir ODK; ODK ON noto; %BETWEEN% noto ON gelir ODK; ODK ON noto; OUTPUT: TECH1; This is my syntax. OUTPUT *** 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) GELIR 14 Thank you for your help. |
|
|
Clusters can be of different sizes. The error message is caused by cluster 14 having different values on the variable gelir for cluster members. All cluster members should have the same value for a variable on the BETWEEN list. |
|
Back to top |
|
|