by acanakci » Tue Sep 24, 2024 9:27 pm
Hello,
According to your suggestion, I fixed the levels for compensation per package, per km, and proportion of bike lanes on the route as follows:
" Design
;alts = alt1*, alt2*
;rows = 180
;eff = (mnl, d)
;block = 30
;model:
Design
;alts = alt1*, alt2*
;rows = 180
;eff = (mnl, d)
;block = 30
;model:
U(Alt1) = b1.dummy[0.00001] * ToolSupply[0,1] +
b2.dummy[0.00001] * Weather[0,1] +
b3.dummy[0.00001|0.00001] * Traffic[0,1,2] +
b4.dummy[0.00001|0.00001] * Insurance[0,1,2] +
b5.dummy[0.00001] * Locker[0,1] +
b6.dummy[0.00001|0.00001|0.00001|0.00001] * WorkingHours[0,1,2,3,4] +
b7[0.00001] * BikeLines[0,0.25,0.5,0.75,1] +
b8[0.00001] * CompPerPackage[40,80,120,160] +
b9[0.00001] * CompPerKM[20,30,40,50,60] +
i1[0.00001] * ToolSupply.dummy[1] * Weather.dummy[1] +
i2[0.00001] * ToolSupply.dummy[1] * BikeLines +
i3[0.00001] * ToolSupply.dummy[1] * Traffic.dummy[1] +
i4[0.00001] * ToolSupply.dummy[1] * Traffic.dummy[2] +
i5[0.00001] * ToolSupply.dummy[1] * Insurance.dummy[1] +
i6[0.00001] * ToolSupply.dummy[1] * Insurance.dummy[2] +
i7[0.00001] * ToolSupply.dummy[1] * WorkingHours.dummy[1] +
i8[0.00001] * ToolSupply.dummy[1] * WorkingHours.dummy[2] +
i9[0.00001] * ToolSupply.dummy[1] * WorkingHours.dummy[3] +
i10[0.00001] * ToolSupply.dummy[1] * WorkingHours.dummy[4] +
i11[0.00001] * BikeLines * Weather.dummy[1] +
i12[0.00001] * Traffic.dummy[1] * Weather.dummy[1] +
i13[0.00001] * Traffic.dummy[2] * Weather.dummy[1] +
i14[0.00001] * Insurance.dummy[1] * Weather.dummy[1] +
i15[0.00001] * Insurance.dummy[2] * Weather.dummy[1] +
i16[0.00001] * Locker.dummy[1] * Weather.dummy[1] +
i17[0.00001] * CompPerPackage * Weather.dummy[1] +
i18[0.00001] * CompPerKM * Weather.dummy[1] +
i19[0.00001] * BikeLines * Insurance.dummy[1] +
i20[0.00001] * BikeLines * Insurance.dummy[2] +
i21[0.00001] * BikeLines * WorkingHours.dummy[1] +
i22[0.00001] * BikeLines * WorkingHours.dummy[2] +
i23[0.00001] * BikeLines * WorkingHours.dummy[3] +
i24[0.00001] * BikeLines * WorkingHours.dummy[4] +
i25[0.00001] * Traffic.dummy[1] * Insurance.dummy[1] +
i26[0.00001] * Traffic.dummy[1] * Insurance.dummy[2] +
i27[0.00001] * Traffic.dummy[2] * Insurance.dummy[1] +
i28[0.00001] * Traffic.dummy[2] * Insurance.dummy[2] +
i29[0.00001] * Traffic.dummy[1] * WorkingHours.dummy[1] +
i30[0.00001] * Traffic.dummy[2] * WorkingHours.dummy[1] +
i31[0.00001] * Traffic.dummy[1] * WorkingHours.dummy[2] +
i32[0.00001] * Traffic.dummy[2] * WorkingHours.dummy[2] +
i33[0.00001] * Traffic.dummy[1] * WorkingHours.dummy[3] +
i34[0.00001] * Traffic.dummy[2] * WorkingHours.dummy[3] +
i35[0.00001] * Traffic.dummy[1] * WorkingHours.dummy[4] +
i36[0.00001] * Traffic.dummy[2] * WorkingHours.dummy[4] +
i37[0.00001] * Insurance.dummy[1] * WorkingHours.dummy[1] +
i38[0.00001] * Insurance.dummy[1] * WorkingHours.dummy[2] +
i39[0.00001] * Insurance.dummy[1] * WorkingHours.dummy[3] +
i40[0.00001] * Insurance.dummy[1] * WorkingHours.dummy[4] +
i41[0.00001] * Insurance.dummy[2] * WorkingHours.dummy[1] +
i42[0.00001] * Insurance.dummy[2] * WorkingHours.dummy[2] +
i43[0.00001] * Insurance.dummy[2] * WorkingHours.dummy[3] +
i44[0.00001] * Insurance.dummy[2] * WorkingHours.dummy[4] +
i45[0.00001] * CompPerKM * WorkingHours.dummy[1] +
i46[0.00001] * CompPerKM * WorkingHours.dummy[2] +
i47[0.00001] * CompPerKM * WorkingHours.dummy[3] +
i48[0.00001] * CompPerKM * WorkingHours.dummy[4] / ..."
I have a couple of questions related to this change:
Could I preserve their continuous nature? Is this way correct to handle them? Should I add an interaction term for each level, just as the discrete ones?
One more question related to one of the previous pieces of advice (writing alts = alt1*, alt2*), when I add it to my script as above I encounter the following error:
"A valid initial random design could not be generated after approximately 10 seconds. In this time, of the 13899 attempts made, there were 0 row repetitions, 0 alternative repetitions, and 13899 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."
When I write alts = alt1, alt2; then I get the error value: 0.108278. Is this a suitable/well-accepted value?
Thank you very much!
Beyza