Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The VARCOMP Procedure

Relationship to PROC MIXED

The MIXED procedure effectively performs the same analyses as PROC VARCOMP and many others, including Type I, Type II, and Type III tests of fixed effects, confidence limits, customized contrasts, and least-squares means. Furthermore, continuous variables are permitted as both fixed and random effects in PROC MIXED, and numerous other covariance structures besides variance components are available.

To translate PROC VARCOMP code into PROC MIXED code, move all random effects to the RANDOM statement in PROC MIXED. For example, the syntax for the example in the "Getting Started" section is as follows:

   proc mixed;
      class Temp Lab Batch;
      model Cure = Temp;
      random Lab Temp*Lab Batch(Lab Temp);
   run;
REML is the default estimation method in PROC MIXED, and you can specify other methods using the METHOD= option.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.