Hi all. I'm attaching a dataset which has up up to 6 reading test scores (R_THETA) nested in each of 5995 children (CHILDID) nested each of 446 schools (S2_ID). Yet the output from the mixed procedure reports that both CHILDID and S2_ID have 5931 groups, as though every child is in their own school.
The output doesn't make sense in other ways, either. Convergence is not achieved, and the child and school variances are reported as practically equal. (In fact they wouldn't be distinguishable if every child was in their own school.)
What is going on here? Is there a bug in mixed, or am I doing something wrong?
I'm attaching the data and log. Here are the commands I'm running.
The output doesn't make sense in other ways, either. Convergence is not achieved, and the child and school variances are reported as practically equal. (In fact they wouldn't be distinguishable if every child was in their own school.)
What is going on here? Is there a bug in mixed, or am I doing something wrong?
I'm attaching the data and log. Here are the commands I'm running.
Code:
log using mixed_error, replace use reduced, clear /* This dataset has up to 6 reading test scores (R_THETA) nested in each of 5995 children (CHILDID) nested each of 446 schools (S2_ID) */ ssc install distinct distinct CHILDID S2_ID /* CHILDID has 5995 disinct values, S2_ID has 446 */ list if missing(S2_ID) | missing(CHILDID) /* Neither has any missing values */ mixed R_THETA || CHILDID: || S2_ID:, iter(5) /* but mixed reports that both CHILDID and S2_ID has 5931 groups, as though every child is in their own school */ /* The CHILDID and S2_ID variances are reported as practically equal, and convergence was not achieved (even if I let it run for more than 5 iterations) In fact the variances would not be distinguishable if every child was in their own school. */ /* Note that I used the iter(5) options because it doesn't converge (not concave). */ log close
Comment