You can also us MIANALYZE to combine the random effects as well. You would have to do something like the example below.
data hlm3; seedval = 9273448; do _imputation_=1 to 3; do school = 1 to 5; call rannor(seedval,usi); call rannor(seedval,ust); do class = 1 to 3; call rannor(seedval,uci); call rannor(seedval,uct); do pupil = 1 to 10; call rannor(seedval,upi); call rannor(seedval,upt); do time = 1 to 3; call rannor(seedval,e); y = 1 + usi + uci + upi + time*(1 + ust + uct + upt) + e; output; end; end; end; end;end; run;
proc mixed data=hlm3; by _imputation_; class school; model y = time / s; random int time / subject=school solution;; ods output solutionr=rparms(rename=(stderrpred=stderr)); run; /*Skip this step and remove the BY statement if you do not have*/ /*the SUBJECT= option on the RANDOM statement*/ proc sort data=rparms; by school _imputation_; run; proc mianalyze parms=rparms; by school; modeleffects intercept time; run;
... View more