* Generating Mixture Designs With SAS;
*Generating mixture designs in SAS;
*First, initialize the macro library;
%adxgen
%adxmix
%adxinit
/*
The macro adxscd constructs simplex-centroid designs.
It has the form %adxscd(file,x1 x2 ... xq,m), where
o file is a SAS data file to which the design is written
o x1,...,xq are the design factors
o m is the degree of the polynomial model to be supported,
m<=q. If m>q, the design for m=q is generated.
Example:
*/
%adxscd(scd,gin vodka vermouth,2)
proc print;run;
%adxscd(scd,gin vodka vermouth,3)
proc print;run;
%adxscd(scd,gin vodka vermouth,4)
proc print;run;
/*
The macro adxsld constructs simplex-lattice designs.
It has the form %adxsld(file,x1 x2 ... xq,m),
- file is a SAS data file to which the design is written
- x1,...,xq are the design factors
- m is the reciprocal of the increment
A {q,m} simplex lattice design is generated.
Example:
*/
%adxsld(sld,gin vodka vermouth,2)
proc print;run;
%adxsld(sld,gin vodka vermouth,3)
proc print;run;
/*
The macro adxfill adds design points to the interior of a design
region. It has the form %adxfill(file,x1 x2 ... xq), where the design
to be filled in is found in the SAS data set file, and x1,...,xq are
the design factors. Adxfill adds to the existing design the average of
every pair of points in the design in file.
Example:
*/
%adxsld(sld,gin vodka vermouth,2)
proc print;run;
%adxfill(sld,gin vodka vermouth)
proc print;run;