I need your guidance on this.
I am trying to understand and implement interaction effects. In my first survey I had not used any interactions in my design. Here is the old code (homogenous bayesian efficient design with 2 products) and I will modify this with new priors, SD:
- Code: Select all
Design
;alts(beef) = alt1, alt2, neither
;alts(milk) = alt1, alt2, neither
;rows = 18
;block = 3
;eff = beef(mnl,d,mean)+milk(mnl,d,mean)
;bdraws = sobol(1000)
;cond:
if(alt1.origin=alt2.origin, alt1.welfare<>alt2.welfare),
if(alt1.origin=0 and alt1.infectionlevel=0 and alt1.price=[0,1], alt2.welfare<alt1.welfare)
;con
; model(beef):
?origin #, infectionlevel#, price#, welfare
U(alt1) = b2.effects[(n,0.1,0.3)|(n,0.3,0.5)]*origin[0,1,2] + b3[(n,-0.01,0.01)]*infectionlevel[0,10,20,30] + b4.effects[(n,0.6,0.2)|(n,-0.7,0.6)]*price[0,1,2] + b5.effects[(n,0.9,0.3)|(n,1.02,0.5)]*welfare[0,1,2] /
U(alt2) = b2*origin + b3*infectionlevel + b4*price +b5*welfare /
U(neither) = b6[0.8]
; model(milk):
?origin #, infectionlevel#, price#, welfare
U(alt1) = b2.effects[(n,0.4,0.2)|(n,0.7,0.5)]*origin[0,1,2] + b3[(n,-0.04,0.01)]*infectionlevel[0,10,20,30] + b4.effects[(n,0.6,0.2)|(n,-0.3,0.6)]*price[0,1,2] + b5.effects[(n,0.4,0.2)|(n,0.7,0.5)]*welfare[0,1,2] /
U(alt2) = b2*origin + b3*infectionlevel + b4*price +b5*welfare /
U(neither) = b6[-1.8]
$
I am running the survey again but this time I want to add interaction effects in the deign itself. Particularly interaction between two attributes and their levels.
However, I am too uncertain.
What I am struggling with is the following:
I will get my priors from estimating an mnl and rpl model using interactions I hadn't designed for before i.e. The first full study had no interaction effects designed. What would be the impact of this?
The attributes for interaction are:
Welfare: High welfare, med welfare, low welfare (low welfare is the base level)
Infection level: inf0, inf10, inf20, inf30 (base level is inf0 indication 0(%) infection)
if I interact these, I get 6 new variables that I would need to add to the design! Is that correct?
highwel*inf0 (base)
highwel*inf10
highwel*inf20
highwel*inf30
medwel*inf0(base)
medwel*inf10
medwel*inf20
medwel*inf30
Problem with collinearity if I were to include these:
lowwel*inf0 (base)
lowwel*inf10
lowwel*inf20
lowwel*inf30
Thank you
Maria