Hi all,
I'm wondering how to create designs with a particular type of constraint in Ngene. Here is a example of what I'd like to do:
Consider a design with 2 discrete attributes, a and b. Each of a and b has 4 levels. I want to impose the following constraint.
;cond:
if (alt1.a < 4, alt1.b < 4)
if (alt1.a = 4, alt1.b = 4)
That is, whenever a = 4, b =4 and whenever a <> 4, b <>4. Now, you will tell me that such a model is not identified. And I would respond that certainly I know that. We typically estimate it by creating one dummy variable for the condition where both attributes are equal to 4. That is, the dummy = 1 when both attributes = 4 and 0 otherwise. Then we parameterize the remaining levels as if they were 3-level effects coded - so two variables each, except they are all 0 when the dummy = 1. For our two four level variables here, that would be 5 variables in total, 1 dummy for the 4th level, 2 effects coded variables for levels 1-3 of attribute a and 2 effects coded variables for levels 1-3 of attribute b.
My question is: how do we specify these variables in Ngene. How do we set priors for them? How do we enter them in the utility equation?
Thanks much,
Paul