by Nassar » Fri May 22, 2015 9:32 pm
Bliemer
I made a confusion between alternatives and choices.
I want to build a choice situation with 4 alternatives that can be structured into 2 pairs (alt1&2, 3&4)
The attributes are brand, price, comfort, and additional price for comfort
Alt1 & Alt3 has no comfort option, 2 & 4 are same alternatives (1 & 3) with comfort at higher price..
Design
;alts = altl,alt2,alt3,alt4,none
;rows = 600
;block= 25
;eff = (mnl,d)
;cond:
if (alt1.brand=1 , alt2.brand=1),
if (alt1.brand=2 , alt2.brand=2),
if (alt1.brand=3 , alt2.brand=3),
if (alt1.price=100, alt2.price=100),
if (alt1.price=120, alt2.price=120),
if (alt1.price=145, alt2.price=145),
if (alt1.price=175, alt2.price=175),
if (alt1.price=210, alt2.price=210),
if (alt1.comfort > 0, alt1.comfort = 0),
if (alt2.comfort = 0, alt2.comfort > 0),
if (alt3.brand=1 , alt4.brand=1),
if (alt3.brand=2 , alt4.brand=2),
if (alt3.brand=3 , alt4.brand=3),
if (alt3.price=100, alt4.price=100),
if (alt3.price=120, alt4.price=120),
if (alt3.price=145, alt4.price=145),
if (alt3.price=175, alt4.price=175),
if (alt3.price=210, alt4.price=210),
if (alt3.comfort > 0, alt3.comfort = 0),
if (alt4.comfort = 0, alt4.comfort > 0),
;model:
U(alt1)=a.dummy[0|0]*brand[1,2,3] + b.dummy[0|0|0]*comfort[0,1,2,3] + c*price[100,120,145,175,200] /
U(alt2)=a*brand + b*comfort + c*price + d*additional[20:50] /
U(alt3)=a*brand + b*comfort + c*price /
U(alt4)=a*brand + b*comfort + c*price + d*additional
$
Hope it's clearer
Naji