Same contraints across alternatives?
Posted: Thu Sep 11, 2014 8:08 am
Hi All
Hoping you can help me out here. I've been playing with the design below for a pilot (hence the odd priors - based on published literature). It will happily produce a design if I run it with the contraint operating in only one of the alternatives (say A), but I need it to apply to both A and B. However, if I try the full syntax below it will not produce a design.
Have I mispecified the constraints here?
Design
;alts = A*, B*
;rows = 60
;block = 5
;eff = (mnl,wtp(wtp1))
;wtp = wtp1(a1,a2,a3,a4/a5)
;alg = swap(stop = noimprov(10000 iterations))
;cond:
if(a.mode=[0,1], a.freq=[1,2,3]),
if(a.mode=2, a.freq=[0,1,2]),
if(b.mode=[0,1], b.freq=[1,2,3]),
if(b.mode=2, b.freq=[0,1,2])
;model:
U(A) = a1.effects[-0.02|-0.01]* mode[0,1,2] + a2.effects[-0.03|-0.02|-0.01]* freq[0,1,2,3] + a3[0.33]* efficacy[2,4,6,7] + a4[-0.01]* safety[1,5,10] + a5[-0.003]*oop[0,500,1000,1500]+ i1[0.01]*mode.dummy[2]*freq.dummy[0] /
U(B) = a1* mode + a2* freq + a3* efficacy + a4* safety + a5*oop + i1*mode.dummy[2]*freq.dummy[0] $
As an aside, in a previous run of this model (without constraining the b alternative), I had inadvertently interacted mode*freq without specifying the levels, and I was surprised when it produced a design. Would that be useable given the effects coded nature of those two attributes?
I'll be most appreciative of any help you can provide.
Cheers
Richard
Hoping you can help me out here. I've been playing with the design below for a pilot (hence the odd priors - based on published literature). It will happily produce a design if I run it with the contraint operating in only one of the alternatives (say A), but I need it to apply to both A and B. However, if I try the full syntax below it will not produce a design.
Have I mispecified the constraints here?
Design
;alts = A*, B*
;rows = 60
;block = 5
;eff = (mnl,wtp(wtp1))
;wtp = wtp1(a1,a2,a3,a4/a5)
;alg = swap(stop = noimprov(10000 iterations))
;cond:
if(a.mode=[0,1], a.freq=[1,2,3]),
if(a.mode=2, a.freq=[0,1,2]),
if(b.mode=[0,1], b.freq=[1,2,3]),
if(b.mode=2, b.freq=[0,1,2])
;model:
U(A) = a1.effects[-0.02|-0.01]* mode[0,1,2] + a2.effects[-0.03|-0.02|-0.01]* freq[0,1,2,3] + a3[0.33]* efficacy[2,4,6,7] + a4[-0.01]* safety[1,5,10] + a5[-0.003]*oop[0,500,1000,1500]+ i1[0.01]*mode.dummy[2]*freq.dummy[0] /
U(B) = a1* mode + a2* freq + a3* efficacy + a4* safety + a5*oop + i1*mode.dummy[2]*freq.dummy[0] $
As an aside, in a previous run of this model (without constraining the b alternative), I had inadvertently interacted mode*freq without specifying the levels, and I was surprised when it produced a design. Would that be useable given the effects coded nature of those two attributes?
I'll be most appreciative of any help you can provide.
Cheers
Richard