Dear Dr. Michiel,
I would appreciate your guidance in improving this script. I believe there is an issue—specifically, with the definition of two attributes [cafeina, sabor].
To provide some context: this is a labelled design with seven labels (Coca-Cola, Fanta, Schweppes, Pepsi, Inca Kola, 7-Up), including a "none" option.
Regarding the required command: for alternatives 2, 3, 5, and 6, the attribute cafeina (which has two levels: sin cafeína and con cafeína) is fixed at sin cafeína. However, alternatives 1 and 4 can be either sin cafeína or con cafeína. The same logic applies to the sabor attribute: alt5.sabor is fixed to the original [5], while sabor are assigned specific levels for the other alternatives.
All the attributes are categorical except the price.
**************
Design
;alts = alt1* , alt2*, alt3*, alt4*, alt5*, alt6*, none
;rows = 42
;block = 3 , minsum
;eff = (mnl,d)
;require:
alt2.cafeina = 1,
alt3.cafeina = 1,
alt5.cafeina = 1,
alt6.cafeina = 1
alt5.sabor = 5
;model:
U(alt1) = b1 + b2.dummy[0] * Cafeina[1,2] + b3.dummy[0]* origen[1,2] + b4.dummy[0] * tipo[1,2] + b5.dummy[0|0] * sabor_cola[1,9,14] + b6* Price_cola[1, 1.15, 1.4, 1.6] (0-42, 2-12, 2-12, 2-12)/
U(alt2) = b7 + b2 * Cafeina + b3* origen + b4tipo + b8.dummy[0|0] * sabor_fan[2,11,13] + b9 Price_fan[0.85, 1, 1.1, 1.2](0-42, 2-12, 2-12, 2-12)/
U(alt3) = b10 + b2 * Cafeina + b3* origen + b4*tipo + b11.dummy[0|0] * sabor_shwep[1,3,11] + b12 * Price_shwep[0.9, 1, 1.15, 1.4](0-42, 2-12, 2-12, 2-12)/
U(alt4) = b13 + b2 * Cafeina + b3* origen + b4*tipo + b14.dummy[0|0] * sabor_pepsi[9,4,10] + b15 * Price_pepsi[1.05, 1.15, 1.35, 1.5](0-42, 2-12, 2-12, 2-12)/
U(alt5) = b16 +b2 * Cafeina + b3* origen + b4*tipo + b17 * sabor[5] + b20 * Price_inca[0.90, 1.05, 1.15, 1.30](0-42, 2-12, 2-12, 2-12)/
U(alt6) = b18+ b2 * Cafeina + b3* origen + b4*tipo + b19.dummy[0|0] * sabor_up[6,7,8] + b20 * Price_up[0.65, 0.85, 1, 1.15](0-42, 2-12, 2-12, 2-12)
$
I mean for example in alt 5, sabor (catego.var) has only one level, so how can I specify it in the script?
May I remove variables in each alternative with one level? but now I start to think about Zeros that I will obtain in the unspecified variable/alternative instead of the levels that has to be mentioned.
I don´t know if I well explained the issue that I have. Can you help me with this?
Greetings,