error to run the model with two dummy variable
Posted: Fri Nov 12, 2021 3:33 pm
Dear Michiel
Thank you for previous suggestions and aids to resolve my doubts,
now I get my priors, and I´m doing my design in the Ngene software, and I´m using the following code:
Design
;alts = A, B, C
;rows = 24
;block = 4
;eff = (mnl,d)
;model:
U(A) = b1[0] + b2[0.06] * A[10,25,50,75] + b3.dummy[-0.54|1.85|-0.23] * B[0,1,2,3] + b4[-0.01] * C[0,2,5,9] + b5.dummy[0.54|-0.14|0.11] * D[0,1,2,3] /
U(B) = b2 * A + b3 * B + b4 * C + b5 * D /
U(C) = b2 * A1[50] + b3 * B1[1] + b4 * C1[5] + b5 * D1[0]
$
When I tried to run the model, Ngene wouldn´t let me run it with the dummy variable, and I had the same problem when I included the status quo. (U(C) = b2 * A1[50] + b3 * B1[1] + b4 * C1[5] + b5 * D1[0]). I only can run the model with one dummy variable, but not with two dummy variables.
Could you help me check my code because I have checked several times and can´t find the mistake I am making?
Thank you very much again for you time.
Thank you for previous suggestions and aids to resolve my doubts,
now I get my priors, and I´m doing my design in the Ngene software, and I´m using the following code:
Design
;alts = A, B, C
;rows = 24
;block = 4
;eff = (mnl,d)
;model:
U(A) = b1[0] + b2[0.06] * A[10,25,50,75] + b3.dummy[-0.54|1.85|-0.23] * B[0,1,2,3] + b4[-0.01] * C[0,2,5,9] + b5.dummy[0.54|-0.14|0.11] * D[0,1,2,3] /
U(B) = b2 * A + b3 * B + b4 * C + b5 * D /
U(C) = b2 * A1[50] + b3 * B1[1] + b4 * C1[5] + b5 * D1[0]
$
When I tried to run the model, Ngene wouldn´t let me run it with the dummy variable, and I had the same problem when I included the status quo. (U(C) = b2 * A1[50] + b3 * B1[1] + b4 * C1[5] + b5 * D1[0]). I only can run the model with one dummy variable, but not with two dummy variables.
Could you help me check my code because I have checked several times and can´t find the mistake I am making?
Thank you very much again for you time.