I am using Stata 14.1 on Windows 10.
I am doing a simple multi-level model on tolerance (tolind) with age (age, agesq), period, and cohort. Period (year) has 17 categories and cohort (cohort5) has 16 categories. Using:
The output shows cohort5 has 16 groups but it shows year having 232 groups. I checked the year variable, it has only 17 groups.
If I change the code to:
the output shows year with 17 groups and cohort5 with 232 groups.
The correct code – in terms of order for my level 2 variables is:
Why is year showing 232 groups instead of 17 and how can I correct it?
Thanks,
Marie
I am doing a simple multi-level model on tolerance (tolind) with age (age, agesq), period, and cohort. Period (year) has 17 categories and cohort (cohort5) has 16 categories. Using:
Code:
mixed tolind age agesq || cohort5: || year:
If I change the code to:
Code:
mixed tolind age agesq || year: || cohort5:
The correct code – in terms of order for my level 2 variables is:
Code:
mixed tolind age agesq || cohort5: || year:
Thanks,
Marie
Comment