Michiel Bliemer wrote:Ok, then my answer was correct. You need to impose constraints to create realistic .
With the default swapping algorithm, you can use if-then constraints in the ;cond property.
With the modified Federov algorithm, you can use reject constraints in the ;reject property.
I refer to the manual for examples of such constraints. Let me know if you need further help in formulating your constraints.
Michiel
Dear professor,
I have added constraints to codes in order to get the desired results.Is it correct for me to use the following command for efficient design? (2 alternatives and 1 exit option)
Code: Select all
design
;alts = alt1*, alt2*
;rows=12
;block=2
;eff=(mnl,d)
;cond:
If(alt1.A+alt1.B=0,alt1.C=1),
If(alt1.A+alt1.C=0,alt1.B=1),
If(alt1.C+alt1.B=0,alt1.A=1),
If(alt2.A+alt2.B=0,alt2.C=1),
If(alt2.A+alt2.C=0,alt2.B=1),
If(alt2.C+alt2.B=0,alt2.A=1),
If(alt1.A+alt1.B+alt1.C>alt2.A+alt2.B+alt2.C,alt1.D>alt2.D),
If(alt1.A+alt1.B+alt1.C<alt2.A+alt2.B+alt2.C,alt1.D<alt2.D)
;model:
U(alt1)=b2.dummy[0.0001]*A[1,0]?0=status quo(base),1=improment
+b3.dummy[0.0001]*B[1,0]?0=status quo(base),1=improment
+b4.dummy[0.0001]*C[1,0]?0=status quo(base),1=improment
+b5.dummy[0.0001]*D[1,0]?0=minor improment(base),1=major improment
+b6.dummy[-0.0001|-0.0001]*E[1,2,0]?/
U(alt2)=b2.dummy*A+b3.dummy*B+b4.dummy*C+b5.dummy*D+b6.dummy*E
$
But the result I obtained is D-error=0.646891.Is this error too large? If I reduce the number of constraints, then I will not get the choice set I want. Or can you tell me that I am doing the right thing?
Anna