Hi,
I am trying to produce a design that has a number of constraints placed on it and as such I'm finding it a bit hard to produce a model that works. I have two questions really. The first is how the model is affected by using restrictions on it to determine the levels in the design (Model 1 below) as opposed to setting different levels between alternatives in the utility function (Model 2). The second question is around generating a model in which I can include interactions. Both models below generate a design I think I am happy with when I keep the model simple, however when I start adding in complexities (in this case interactions) the models can no longer generate a design. Do you have any suggestions as to how I can add in interactions and still generate a sensible model?
Model 1
design
;alts = PlanA*, PlanB*
;rows = 16
;eff = (mnl,d)
;alg = mfederov(candidates=10000000)
;require:
PlanA.Att5 = 0,
PlanB.Att1 + PlanB.Att2 + PlanB.Att3 + PlanB.Att4 = 0
;reject:
PlanB.Att5 = 0
;model:
U(PlanA) = b1 * Att1[0,5,10,15] + b2 * Att2[0,5,10,15] + b3 * Att3[0,5,10,15] + b4 * Att4[0,5,10,15] + b5 * Att5[0,10,15,25] + i1 * Att1 * Att5 + i2 * Att1 * Att5 + i3 * Att3 * Att5 + i4 * Att4 * Att5/
U(PlanB) = b1 * Att1 + b2 * Att2 + b3 * Att3 + b4 * Att4 + b5 * Att5 + i1 * Att1 * Att5 + i2 * Att1 * Att5 + i3 * Att3 * Att5 + i4 * Att4 * Att5
$
Model 2
design
;alts = PlanA*, PlanB*
;rows = 16
;eff = (mnl,d)
;model:
U(PlanA) = b1 * Att1[0,5,10,15] + b2 * Att2[0,5,10,15] + b3 * Att3[0,5,10,15] + b4 * Att4[0,5,10,15] + b5 * Att5[0]+ i1 * Att1 * Att5 + i2 * Att1 * Att5 + i3 * Att3 * Att5 + i4 * Att4 * Att5 /
U(PlanB) = b1 * Att1b[0] + b2 * Att2b[0] + b3 * Att3b[0] + b4 * Att4b[0] + b5 * Att5b[10,15,25] + i1 * Att1b * Att5b + i2 * Att2b * Att5b + i3 * Att3b * Att5b + i4 * Att4b * Att5b
$
Thanks...