NGENE and Survey Engine

Good Afternoon,
I have a subscription of both NGENE and Survey Engine. Ideally I wanted to design my DCE in ngene first and then import the xl-template to Survey engine. Please look at my ngene commands below:
design
;alts = opt1*, opt2*
;eff = (mnl, d)
;alg = swap
;rows = 42
;block = 6
;cond:
if(opt1.x1= 0, opt1.x2=[0,1]),
if(opt1.x1= 2, opt1.x2=[1,2]),
if(opt1.x1= 1, opt1.x2=[0,1,2]),
if(opt2.x1= 0, opt2.x2=[0,1]),
if(opt2.x1= 2, opt2.x2=[1,2]),
if(opt2.x1= 1, opt2.x2=[0,1,2])
;model:
U(opt1) = b1.dummy [0.0001|0.0001] * x1[1,2,0] ? speed (low,high, ultrafast)
+ b2.dummy[-0.0001|-0.0001] * x2[1,2,0] ? linear variable of price where 0(25pence/kWh), 1( 57 pence/kWh), 2(80 pence/kWh)
+ b3.dummy[0|0] * x3[1,2,0] ? locality (categorical variable with no ordering)
+ b4.dummy[0|0|0] * x4[1,2,3,0] ? types of journey services (categorical variable with no ordering)
+ b5.dummy[0.0001|0.0001] * x5[1,2,0] ? type of fuel used (ordered in terms of clean-ness)
+ b6.dummy[0|0] * x6[1,2,0] ? types of loans and subscriptions (categorical variable with no ordering)
+ b7.dummy[-0.0001] * x7[1,0] ? late-fee, yes = 1, no= 0 (if yes, then lesser utility)
/
U(opt2) = b1 * x1
+ b2 * x2
+ b3 * x3
+ b4 * x4
+ b5 * x5
+ b6 * x6
+ b7 * x7
$
Q-1) I have an unlabeled DCE design with two alt. and 7 attributes with 2, 3 and 4 levels in each.
Could you kindly check if the code, and rows seem correct to you ?
Q-2) When I run this without the +ve or -ve priors , but only the few constraints then it gives me a d-error of 0.1 , but the moment I put these few near-zero priors based on how I think the attributes of those levels increasing up may impact positively or negatively to the overall utility function , then NGENE gives me the following error :
*****Warning:
An attempt will be made to balance the frequency of each level in attributes affected by constraints, however complete balance might not be possible.
A valid initial random design could not be generated after approximately 10 seconds. In this time, of the 88599 attempts made, there were 0 row repetitions, 112 alternative repetitions, and 88487 cases of dominance. There are a number of possible causes for this, including the specification of too many constraints, not having enough attributes or attribute levels for the number of rows required, and the use of too many scenario attributes. A design may yet be found, and the search will continue for 10 minutes. Alternatively, you can stop the run and alter the syntax.
Error: Aborting the run. After approximately 10 minutes, an initial random design was not found.
Finished, at 9:42:54 PM, 6/19/2025 ******
Can you suggest me what other ways I can try to attain a good pilot design with an Unlabelled DCE that ideally needs non-zero priors , for my first 100 sample?
Q-3) If i try to design the same , directly on Survey Engine instead of NGENE and use their ''generate using ngene'' option then in the ''layout'' section its ordered differently (please check the attached image)
[img][https://drive.google.com/file/d/1dXRMrpdu-4P7rBVC6ntIHsh_6ZLSlt8m/view?usp=sharing/img]
In SE , as you can see the priors are set alongside 0 and 1 for the first attribute called Speed and unlike NGENE its not attached with 1,2 levels where 0 is the base. Does it mean in Svy. Engine the sign of the priors would alter and become the opposite if (in this case ) 2 becomes the base ?
All I want is to generate a design whose design matrix ultimately is the same whether generated in SE through NGENE or, designed in NGENE and imported to Svy engine.
Q-4) In the same image for the second attribute of Price (or cost, which will ultimately help us finding WTP) , which was a continuous variable, I ticked on the 'linear' option in Svy. Engine so it transformed them to effects coding and therefore only one prior is to be set there. Hope I did it correctly?
But in NGENE (code above ) I had to take two priors if I use dummy 0,1,2 codes for 25,57,80£
These inconsistencies are making me confused.
Your guidance will be really helpful. Thanks
I have a subscription of both NGENE and Survey Engine. Ideally I wanted to design my DCE in ngene first and then import the xl-template to Survey engine. Please look at my ngene commands below:
design
;alts = opt1*, opt2*
;eff = (mnl, d)
;alg = swap
;rows = 42
;block = 6
;cond:
if(opt1.x1= 0, opt1.x2=[0,1]),
if(opt1.x1= 2, opt1.x2=[1,2]),
if(opt1.x1= 1, opt1.x2=[0,1,2]),
if(opt2.x1= 0, opt2.x2=[0,1]),
if(opt2.x1= 2, opt2.x2=[1,2]),
if(opt2.x1= 1, opt2.x2=[0,1,2])
;model:
U(opt1) = b1.dummy [0.0001|0.0001] * x1[1,2,0] ? speed (low,high, ultrafast)
+ b2.dummy[-0.0001|-0.0001] * x2[1,2,0] ? linear variable of price where 0(25pence/kWh), 1( 57 pence/kWh), 2(80 pence/kWh)
+ b3.dummy[0|0] * x3[1,2,0] ? locality (categorical variable with no ordering)
+ b4.dummy[0|0|0] * x4[1,2,3,0] ? types of journey services (categorical variable with no ordering)
+ b5.dummy[0.0001|0.0001] * x5[1,2,0] ? type of fuel used (ordered in terms of clean-ness)
+ b6.dummy[0|0] * x6[1,2,0] ? types of loans and subscriptions (categorical variable with no ordering)
+ b7.dummy[-0.0001] * x7[1,0] ? late-fee, yes = 1, no= 0 (if yes, then lesser utility)
/
U(opt2) = b1 * x1
+ b2 * x2
+ b3 * x3
+ b4 * x4
+ b5 * x5
+ b6 * x6
+ b7 * x7
$
Q-1) I have an unlabeled DCE design with two alt. and 7 attributes with 2, 3 and 4 levels in each.
Could you kindly check if the code, and rows seem correct to you ?
Q-2) When I run this without the +ve or -ve priors , but only the few constraints then it gives me a d-error of 0.1 , but the moment I put these few near-zero priors based on how I think the attributes of those levels increasing up may impact positively or negatively to the overall utility function , then NGENE gives me the following error :
*****Warning:
An attempt will be made to balance the frequency of each level in attributes affected by constraints, however complete balance might not be possible.
A valid initial random design could not be generated after approximately 10 seconds. In this time, of the 88599 attempts made, there were 0 row repetitions, 112 alternative repetitions, and 88487 cases of dominance. There are a number of possible causes for this, including the specification of too many constraints, not having enough attributes or attribute levels for the number of rows required, and the use of too many scenario attributes. A design may yet be found, and the search will continue for 10 minutes. Alternatively, you can stop the run and alter the syntax.
Error: Aborting the run. After approximately 10 minutes, an initial random design was not found.
Finished, at 9:42:54 PM, 6/19/2025 ******
Can you suggest me what other ways I can try to attain a good pilot design with an Unlabelled DCE that ideally needs non-zero priors , for my first 100 sample?
Q-3) If i try to design the same , directly on Survey Engine instead of NGENE and use their ''generate using ngene'' option then in the ''layout'' section its ordered differently (please check the attached image)
[img][https://drive.google.com/file/d/1dXRMrpdu-4P7rBVC6ntIHsh_6ZLSlt8m/view?usp=sharing/img]
In SE , as you can see the priors are set alongside 0 and 1 for the first attribute called Speed and unlike NGENE its not attached with 1,2 levels where 0 is the base. Does it mean in Svy. Engine the sign of the priors would alter and become the opposite if (in this case ) 2 becomes the base ?
All I want is to generate a design whose design matrix ultimately is the same whether generated in SE through NGENE or, designed in NGENE and imported to Svy engine.
Q-4) In the same image for the second attribute of Price (or cost, which will ultimately help us finding WTP) , which was a continuous variable, I ticked on the 'linear' option in Svy. Engine so it transformed them to effects coding and therefore only one prior is to be set there. Hope I did it correctly?
But in NGENE (code above ) I had to take two priors if I use dummy 0,1,2 codes for 25,57,80£
These inconsistencies are making me confused.
Your guidance will be really helpful. Thanks