I'm trying to design a discrete choice experiment survey using the code from Kuhfeld's Marketing Research Methods with SAS 9. https://support.sas.com/techsup/technote/mr2010.pdf Here is my code: title 'Water'
%mktruns(2 2 2 4 2)
%mktex(2 2 2 4 2, n=64)
proc format;
value provider 1 = 'public utility' 2 = 'private seller';
value measure 1 = 'tanker' 2 = 'tap';
value payment 1 = 'upfront' 2 = 'after';
value price 1 = '500' 2 = '1500' 3 = '2500' 4 = '3500';
value quality 1 = 'raw' 2 = 'safe';
run;
%mktlab(data=design,
vars=Provider Measure Payment Price Quality,
int=f1-f2,
out=final,
stmts=format provider provider. measure measure. payment payment. price price. quality quality.)
proc print; run;
%macro res; bad=(quality = safe & price = 500) %mend;
%choiceff(data=final,
bestout=sasuser.waterdes,
model=class(provider measure payment price quality / sta) /
cprefix=0
lprefix=0,
nsets=32,
seed=145,
flags=f1-f2,
restrictions=res,
resvars=price quality,
options=relative,
beta=zero)
proc print data=sasuser.waterdes;
var provider -- quality;
id set; by set;
run;
proc datasets lib=work kill nolist memtype=data;
quit; I need to implement restrictions on the choice sets, namely that the price does not equal 500 when the quality is safe. How can I implement this?
... View more