Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Macros for the Design and Analysis of Experiments

ADXDCODE: Decode a Design

%adxdcode (ds, desc, block)

where

dsis the name of the data set that contains the design. By default, the name of the last design constructed is used.
descis a description of how to decode the design factors. Each description gives the old factor name, the new factor name, the low value of the factor, and the high value of the factor as follows:
old-name new-name low-value high-value
The low value corresponds to the coded value of -1, and the high value corresponds to the coded value of +1. Descriptions for different factors are separated by slashes. For character values, enclose each character string in angle brackets ( < > ). To simply rename factors, you can omit the low and high values in the description. The factors are not decoded in this case.
blockis a description of how to decode the block factor. The description gives the old name for the block factor, the new name for the block factor, and the values for the factor. For character values, enclose each character string in angle brackets ( < > ). If the design does not contain a block factor, omit block from the call to ADXDCODE.

The ADXDCODE macro customizes designs by changing the factor names and values from the defaults to ones relevant to your application. The default names for design factors are T1, T2, T3, and so on; the default name for a block factor is BLOCK. Once you use the ADXDCODE macro, the design data set no longer contains these default factors.

For example, suppose you have created a fractional factorial design for 5 factors in 16 runs and 4 blocks in the data set DESIGN, using the following commands:

   %adxgen
   %adxff
   %adxinit
   %adxffd(design,5,16,4)

Now suppose you want to rename and decode the 5 design factors as follows:

Factor Name Low Value High Value
TIME13
ROTORonoff
OVEN12
GLUE01
TEMP250400

In addition to changing values for the design factors, you want to change the name of the block factor to DAY and give it the values Mon, Tue, Wed, and Thu. The following macro call performs these decoding tasks:

   %adxdcode(design, t1 time   1     3
                    /t2 rotor <on> <off>
                    /t3 oven   1     2
                    /t4 glue   0     1
                    /t5 temp  250   400,
                    block day <Mon> <Tue> <Wed> <Thu>)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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