Note that the both scripts will run in Ngene Online since it is fully backward compatible.
Ngene Desktop 1.4 syntax
Code: Select all
design
;alts = hotel1*, hotel2*, neither
;rows = 9
;eff = (mnl,d)
;model:
U(hotel1) = b1[-0.00001] * price[80,120,160]
+ b2.dummy[0.001|0.002] * stars[3,5,1]
+ b3[-0.000001] * dist[500,1500,2500],
+ i1 * price * stars.dummy[5]
/
U(hotel2) = b1 * price
+ b2.dummy * stars
+ b3 * dist[500,1500,2500]
+ i1 * price * stars.dummy[5]
/
U(neither) = b0
$
Code: Select all
design
;alts = (hotel1, hotel2), neither
;rows = 9
;eff = (mnl,d)
;model:
U(hotel1, hotel2) = b1[-] * price[80,120,160]
+ b2.dummy[+] * stars[3,5,1]
+ b3[-] * dist[500,1500,2500],
+ i1 * price * stars.level[5] /
U(neither) = b0
$