Bayesian Optimal Design
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: OPTEX7 */
/* TITLE: Bayesian Optimal Design */
/* PRODUCT: QC */
/* SYSTEM: ALL */
/* KEYS: Optimal Designs, */
/* PROCS: FACTEX OPTEX GLM */
/* DATA: */
/* */
/* REF: SAS/QC Software: Usage and Reference, Version 6, */
/* First Edition, Volume 1 and Volume 2 */
/* MISC: */
/* */
/****************************************************************/
options ps=60;
proc factex;
factors x1-x7;
output out=can;
run;
proc optex data=can seed=57922
coding=orth;
model x1-x7,
x1|x2|x3|x4|x5|x6|x7@2
/ prior=0,16;
generate n=20 method=m_fedorov;
output out=des;
run;
data des;
set des;
y=ranuni(654231);
run;
proc glm data=des;
model y=x1-x7 x1|x2|x3|x4|x5|x6|x7@2 / e aliasing;
run;