Sei sulla pagina 1di 4

data myprofiles;

input x1 x2 x3 x4 x5;
datalines;
1 1 2 3 1
1 1 3 3 1
1 2 1 2 2
1 2 3 3 2
1 1 3 1 3
2 2 2 3 3
1 1 1 2 3
1 1 1 3 2
2 1 3 2 2
1 1 2 1 2
2 1 3 2 1
1 1 2 2 3
2 1 1 3 3
1 1 1 1 1
1 2 2 2 1
2 2 1 1 1
2 1 2 1 2
1 2 3 1 3
;
PROC PRINT; RUN;

That gives me back my pre-existing design matrix:


Obs x1 x2 x3 x4 x5
1 1 1 2 3 1
2 1 1 3 3 1
3 1 2 1 2 2
4 1 2 3 3 2
5 1 1 3 1 3
6 2 2 2 3 3
7 1 1 1 2 3
8 1 1 1 3 2
9 2 1 3 2 2
10 1 1 2 1 2
11 2 1 3 2 1
12 1 1 2 2 3
13 2 1 1 3 3
14 1 1 1 1 1
15 1 2 2 2 1
16 2 2 1 1 1
17 2 1 2 1 2
18 1 2 3 1 3

Then, I ran the other code you gave me to make choice sets:

%choiceff(data=myprofiles, model=class(x1-x5), nsets=6,

maxiter=10, seed=104, flags=3, beta=zero)

proc print; id set; by set; var x:; run;


attempt design

Final Results

Design 1
Choice Sets 6
Alternatives 3
Parameters 8
Maximum Parameters 12
D-Efficiency 1.0812
D-Error 0.9249
attempt design

Set x1 x2 x3 x4 x5
1 1 2 1 2 2
2 1 2 1 2
1 1 3 3 1

Set x1 x2 x3 x4 x5
2 1 1 1 3 2
1 2 2 2 1
1 1 3 1 3

Set x1 x2 x3 x4 x5
3 2 1 3 2 1
2 1 1 3 3
1 1 2 1 2

Set x1 x2 x3 x4 x5
4 1 2 3 1 3
1 1 2 3 1
2 1 3 2 2

Set x1 x2 x3 x4 x5
5 2 2 1 1 1
1 2 3 3 2
1 1 2 2 3

Set x1 x2 x3 x4 x5
6 2 2 2 3 3
2 1 3 2 2
1 1 1 1 1

Potrebbero piacerti anche