Constraints on continuous attributes

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Constraints on continuous attributes

Postby Nassar » Wed Jun 17, 2015 3:10 am

Hi All


A small silly question, how can I add constraints on continuous attribute.. I would like to fix threshold base on other attributes levels
Design

;alts = alt1*,alt2*,alt3*,alt4*,alt5*,none
;rows = 400
;block= 50
;eff = (mnl,d)
;cond:
if(alt1.booking1=4, alt1.seat1=1),
if(alt3.booking3=4, alt3.seat3=1),
if(alt1.booking1=4, alt1.mobility1=[1,2,3]),
if(alt3.booking3=4, alt3.mobility3=[1,2,3]),
if(alt1.booking1=4, alt1.flex1=1),
if(alt1.booking1=4, alt2.flex2=1),
if(alt3.booking3=4, alt3.flex3=1),
if(alt3.booking3=4, alt4.flex4=1),
if(alt1.flex1=1, alt1.price1 < .8)
;model:
price is defined as continuous attribute....
The unconstrained syntax is running quite fine..

Best
Naji
Nassar
 
Posts: 8
Joined: Fri Oct 19, 2012 4:54 pm

Re: Constraints on continuous attributes

Postby Michiel Bliemer » Wed Jun 17, 2015 9:01 am

The ;cond command is imcompatible with attributes with a continuous specification, see page 220 of the Ngene manual.

Solution: use semi-continuous levels, e.g. b*A[1:10:0.1], which creates levels 1.0, 1.1, 1.2, ..., 9.9, 10.0, which can be seen as more or less continuous.

Michiel
Michiel Bliemer
 
Posts: 1885
Joined: Tue Mar 31, 2009 4:13 pm


Return to Choice experiments - Ngene

Who is online

Users browsing this forum: No registered users and 11 guests

cron