Different cluster size in TWOLEVEL an... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
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.
 Linda K. Muthen posted on Sunday, March 12, 2017 - 6:56 am
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
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: