restriction involving two attributes

This forum is for posts covering broader stated choice experimental design issues.

Moderators: Andrew Collins, Michiel Bliemer, johnr

restriction involving two attributes

Postby juanprice » Fri Feb 08, 2019 7:25 pm

Dear all
Is there any way of telling Ngene something like (departing from the status quo situation): if attrib 1 (attrib 2) goes up then the attrib 2 (attrib 1) should remain unchanged or going down?
Many thanks
Juan
juanprice
 
Posts: 2
Joined: Fri Feb 08, 2019 5:35 am

Re: restriction involving two attributes

Postby Michiel Bliemer » Sat Feb 09, 2019 9:24 am

This may be possible with requires ;require or rejections ;reject, you will have to get a little bit creative.

For example:

;reject:
alt1.x1 > sq.x1 and alt1.x2 > sq.x2

Suppose that sq.x1 = 3 and sq.x2 = 2

Then alt1.x1 = 4 (goes up) and alt1.x2 = 1 (goes down) is accepted, since (4 > 3) and (1 > 2) = (true) and (false) = false, hence does not get rejected.

Note that ;reject and :require need the modified Federov algorithm, ;alg = mfederov

You may be able to use if-then constraints in the ;cond command as well, I am not sure, again you may have to be a bit creative.

Michiel

NB: Please put all Ngene related questions in the Ngene forum. This forum is meant for general design questions.
Michiel Bliemer
 
Posts: 1705
Joined: Tue Mar 31, 2009 4:13 pm


Return to Choice experiments - general

Who is online

Users browsing this forum: No registered users and 3 guests

cron