Hello,
I have a dataset with kids nested within schools, and the outcome was measured four times over 2 years (4 waves).
So, waves - kids - schools (3-level).
I tested ICC at the school level, and it is very low (~.001). So I am considering only 2-levels (kids-schools).
And there are three intervention groups, and we want to see if there are any differences in rates of change across those intervention groups.
Here is the code.
y=outcome
grp=3 intervention groups
wave=4 waves (intervals are the same)
ID=individual id
schoolID=school id
Still, I want to make it sure that the clustering at the school level is considered. So I used vce(cluster schoolID) options.
Question 1) Is this making sense?
Question 2) what is the major difference between vce(cluster schoolID) and vce(robust)?
I would appreciate any comments!
Thanks.
I have a dataset with kids nested within schools, and the outcome was measured four times over 2 years (4 waves).
So, waves - kids - schools (3-level).
I tested ICC at the school level, and it is very low (~.001). So I am considering only 2-levels (kids-schools).
And there are three intervention groups, and we want to see if there are any differences in rates of change across those intervention groups.
Here is the code.
y=outcome
grp=3 intervention groups
wave=4 waves (intervals are the same)
ID=individual id
schoolID=school id
Code:
mixed y i.grp c.wave || ID: c.wave
Code:
mixed y i.grp c.wave || ID: c.wave, vce(cluster schoolID)
Question 1) Is this making sense?
Question 2) what is the major difference between vce(cluster schoolID) and vce(robust)?
I would appreciate any comments!
Thanks.
Comment