Hello,
i need help building my syntax in ngene. I do a choice experiment with 3 alternatives (AltA, AltB, Status quo) and an effizient design. Each alternative (AltA and AltB) is described by the same attributes and levels. I've already done a pretest to get the priors and want to integrate them into my syntax. Unfortunately I get errors and I couldn't find a solution so far.
My syntax before the pretest:
design
;alts = altA, altB, status quo
;rows = 9
;eff = (mnl, d)
;cond:
if(altA.x1 = 0, altB.x1 = [1,2]),
if(altA.x1 = 1, altB.x1 = [0,2]),
if(altA.x1 = 2, altB.x1 = [0,1]),
if(altA.x2 = 0, altB.x2 = [1,2,3]),
if(altA.x2 = 1, altB.x2 = [0,2,3]),
if(altA.x2 = 2, altB.x2 = [0,1,3]),
if(altA.x2 = 3, altB.x2 = [0,1,2]),
if(altA.x3 = 0, altB.x3 = [1,2]),
if(altA.x3 = 1, altB.x3 = [0,2]),
if(altA.x3 = 2, altB.x3 = [0,1]),
if(altA.x4 = 0, altB.x4 = [1,2]),
if(altA.x4 = 1, altB.x4 = [0,2]),
if(altA.x4 = 2, altB.x4 = [0,1]),
if(altA.x5 = 0, altB.x5 = [1,2]),
if(altA.x5 = 1, altB.x5 = [0,2]),
if(altA.x5 = 2, altB.x5 = [0,1])
;model:
U(altA) = b1[0.01]*x1[0,1,2] + b2[0.01]*x2[0,1,2,3] + b3[-0.02]*x3[0,1,2] + b4[0.01]*x4[0,1,2] + b5[-0.03]*x5[0,1,2]+ b1.dummy[0.1|0.1]*x1[0,1,2] + b2.dummy[0.1|0.1|0.1]*x2[0,1,2,3] + b4[0.1|0.1]*x4[0,1,2] /
U(altB) = b6[0.01]*x1 + b7[0.01]*x2 + b8[-0.02]*x3 + b9[0.01]*x4 + b10[-0.03]*x5 + b6.dummy[0.1|0.1]*x1 + b7.dummy[0.1|0.1|0.1]*x2[0,1,2,3] + b9.dummy[0.1|0.1]*x4 /
U(status quo) = b11[0.01]
$
For the Syntax after the pretest I chose new names:
X1=pa_1,pa_2
x2=an_1,pa_2.....
design
;alts = altA, altB, status quo
;rows = 9
;eff = (mnl, d)
;cond:
if(altA.pa_1 = 0, altB.pa_2 = [1,2]),
if(altA.pa_1 = 1, altB.pa_2 = [0,2]),
if(altA.pa_1 = 2, altB.pa_2 = [0,1]),
if(altA.an_1 = 0, altB.an_2 = [1,2,3]),
if(altA.an_1 = 1, altB.an_2 = [0,2,3]),
if(altA.an_1 = 2, altB.an_2 = [0,1,3]),
if(altA.an_1 = 3, altB.an_2 = [0,1,2]),
if(altA.e_1 = 0, altB.e_2 = [1,2]),
if(altA.e_1 = 1, altB.e_2 = [0,2]),
if(altA.e_1 = 2, altB.e_2 = [0,1]),
if(altA.vb_1 = 0, altB.vb_2 = [1,2]),
if(altA.vb_1 = 1, altB.vb_2 = [0,2]),
if(altA.vb_1 = 2, altB.vb_2 = [0,1]),
if(altA.sr_1 = 0, altB.sr_2 = [1,2]),
if(altA.sr_1 = 1, altB.sr_2 = [0,2]),
if(altA.sr_1 = 2, altB.sr_2 = [0,1])
;model:
U(altA) = b1[-0.07163|0.25366|0]*pa_1[0,1,2] + b2[-0.67552|1.47051|1.04867|0]*an_1[0,1,2,3] + b3[-0.07081]*e_1[0,1,2] + b4[1.49265|0.33746|0]*vb_1[0,1,2] + b5[-0.32552|-0.23736|0.63482]*sr_1[0,1,2]+ b1.dummy[-0.07163|0.25366]*pa_1[0,1,2] + b2.dummy[-0.67552|1.47051|1.04867]*an_1[0,1,2,3] + b4.dummy[1.49265|0.33746]*vb_1[0,1,2] /
U(altB) = b1[-0.07163|0.25366|0]*pa_1[0,1,2] + b2[-0.67552|1.47051|1.04867|0]*an_1[0,1,2,3] + b3[-0.07081]*e_1[0,1,2] + b4[1.49265|0.33746|0]*vb_1[0,1,2] + b5[-0.32552|-0.23736|0.63482]*sr_2[0,1,2]+ b1.dummy[-0.07163|0.25366]*pa_1[0,1,2] + b2.dummy[-0.67552|1.47051|1.04867]*an_1[0,1,2,3] + b4.dummy[1.49265|0.33746]*vb_1[0,1,2] /
U(status quo) = b6[-0.07195]
$
Error: The 'model' property contains a prior that has dummy or effects coding without an appropriate suffix. 'b1'
Can you please help me?