Resources

Factorial Design With Blocks

 /****************************************************************/
 /*          S A S   S A M P L E   L I B R A R Y                 */
 /*                                                              */
 /*    NAME: OPTEX2                                              */
 /*   TITLE: Factorial Design With Blocks                        */
 /* PRODUCT: QC                                                  */
 /*  SYSTEM: ALL                                                 */
 /*    KEYS: Optimal Designs, Factorial Designs,                 */
 /*   PROCS: FACTEX OPTEX                                        */
 /*    DATA:                                                     */
 /*                                                              */
 /*     REF: SAS/QC Software:  Examples                          */
 /*    MISC:                                                     */
 /*                                                              */
 /****************************************************************/

options ps=60;

proc factex;
   factors seat_ht pressure generatr ;
   blocks nblocks=4;
   size  design=32;
   output out=design
          seat_ht     nvals=(26 30)
          pressure    nvals=(40 55)
          generatr    cvals=('on' 'off')
          blockname = cyclist
                      cvals=('Bob' 'Maria' 'Mike' 'Randy');
   run;

proc optex seed=27513 data=design;
   class seat_ht pressure generatr cyclist;
   model seat_ht pressure generatr cyclist;
   generate n=16;
   output out=design2;
run;

proc print data=design2;
run;