Hi,
I am trying to run a design for an unlabeled choice experiment. Since level "2" of attribute B should occur more often than the other levels, I wrote the constraint as described in the manual on page 151:
;eff=(mnl,d)
;cond:
If(alt1.c=110, alt1.a=[0,100]),
If(alt1.c=469, alt1.a=[100,200]),
If(alt1.b=2, alt1.d=0),
If(alt2.c=110, alt2.a=[0,100]),
If(alt2.c=469, alt2.a=[100,200]),
If(alt2.b=2, alt2.d=0),
If(alt3.c=110, alt3.a=[0,100]),
If(alt3.c=469, alt3.a=[100,200]),
If(alt3.b=2, alt3.d=0)
;model:
U(alt1)= b0+ b1.effects [0.01|0,02]* A[100,200,0]+ b2.effects [0.005|0,01|0,01]*B[100,200,300,2] (1-4,1-4,1-4,4) + b3 [-0.004]* C[110,219,299,359,469]+ b4.effects [0.01 | 0.005 | 0.005]* D[100,200,300,0] /
U(alt2)= b1.effects*A + b2.effects*B(1-4,1-4,1-4,4) + b3*C + b4.effects*D /
U(alt3)= b1.effects*A + b2.effects*B (1-4,1-4,1-4,4) + b3*C + b4.effects*D
$
The requested occurance of attribute leves for attribute B is ignored by ngene. Level "2" occurs only once for each of the three alternatives and no Error message is given.
Out of curiosity I tried to run a code where B is not effects coded, but then ngene gives the error message
Error: Attribute 'b' has an incorrect number of attribute level frequencies specified: '4,1-4,1-4,1-4'
Can you help me find my mistake?
Thank you.
Corinna