Possible to combine level frequency constraints and cond?

This forum is for posts that specifically focus on Ngene.

Moderators: Andrew Collins, Michiel Bliemer, johnr

Possible to combine level frequency constraints and cond?

Postby rich_imr » Wed Sep 06, 2017 5:30 am

Greetings,

Is it possible to combine attribute level frequency and logical cond constraints?

An example could be, for attribute 1 levels 1-4, attribute 2 level 1 appears 80% of the time and attribute 2 level 2 appears 20% of the time.

I did see that this post "Conditions and attribute level balance" says it is not possible, but I wanted to make sure since it was from 2011.

Are there any workarounds?

Thank you very much for your time,

Richard
rich_imr
 
Posts: 12
Joined: Wed Oct 21, 2015 2:52 am

Re: Possible to combine level frequency constraints and cond

Postby Michiel Bliemer » Wed Sep 06, 2017 9:06 am

Short answer: No it is not possible to combine ;cond with the default swapping algorithm.

Long answer:

There exist two main algorithms in Ngene, namely (i) a column based swapping algorithm that can always ensure attribute level balance but that cannot handle complex constraints, and (ii) a row based modified Federov algorithm that can handle more complex constraints but cannot guarantee attribute level balance. Each algorithm is designed to work with certain constraints. The swapping algorithm works with ;cond constraints, while the modified Federov algorithm works with ;require and ;reject constraints. It is not possible to combine ;cond and ;require/;reject because the way the algorithms work.

There may be a workaround. It is sometimes possible to reformulate the ;cond constraints into ;reject or ;require constraints. This may require a bit of creativity (maybe I can help) and then use the modified Federov algorithm for which you can set upper and lower bounds on the frequency each attribute level appears (i.e. the degree of attribute level balance).

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 32 guests

cron