Hello SAS users,
I am trying to add a level-1 predictor to my model and i am trying to allow the slopes of this predictor to vary across schools (ie random slopes).
I have written three codes for this but i am confused at which one it is. As all three gave me outputs. Can anyone who is familiar with proc mixed help me out?
Thanks!
proc mixed data=me method= reml covtest ;
class school;
model y = ses / s ddfm=bw cl;
random intercept ses / subject=school g type=un s;
run;
OR
proc mixed data=me method= reml covtest ;
class school;
model y = ses / s ddfm=bw cl;
random intercept / subject=school g type=un s;
run;
OR
proc mixed data=me method= reml covtest ;
class school;
model y = ses / s ddfm=bw cl;
random ses / subject=school g type=un s;
run;