efficient design with status quo
Posted: Tue May 26, 2026 10:15 am
Hi,
I am current generate a efficient design for non label design. This design includes alternative 1, alternative 2, status quo and no buy alternative. I have 3 attributes: price, vc, and life. The price has 5 levels. $299 is only for status quo, and other price levels are for alt1 and alt2. For vc, 9 is only for status quo, and others for alt1 and alt2. For life, 5 is only for status quo, and others for alt1 and alt2. Please see the codes below. I got the error message: "Error: An attribute has the wrong number of levels for dummy or effects coding. 'vc_sq'". Could you please provide some suggestions how to fix it?
Thanks so much for your help.
WeI
I am current generate a efficient design for non label design. This design includes alternative 1, alternative 2, status quo and no buy alternative. I have 3 attributes: price, vc, and life. The price has 5 levels. $299 is only for status quo, and other price levels are for alt1 and alt2. For vc, 9 is only for status quo, and others for alt1 and alt2. For life, 5 is only for status quo, and others for alt1 and alt2. Please see the codes below. I got the error message: "Error: An attribute has the wrong number of levels for dummy or effects coding. 'vc_sq'". Could you please provide some suggestions how to fix it?
Thanks so much for your help.
WeI
Code: Select all
Design
;alts = alt1*, alt2*, alt3, nobuy
;rows = 10
;eff = (mnl, d)
;model:
U(alt1) = b0 + b1[-0.0001] * price[299, 374, 449, 524, 599] +
b2.dummy[0.0001|0.0002|0.0003|0.0004] * vc[15,30,45,60,9] +
b3.dummy[0.0001|0.0002|0.0003|0.004] * life[8,11,13,15,5] /
U(alt2) = b0 + b1 * price + b2 * vc + b3 * life /
U(alt3) = b0 +
b1 * price_sq[299] +
b2 * vc_sq[9] +
b3 * life_sq[5]
$