Interactions with continuous variables
Posted: Sat Dec 09, 2017 5:29 am
Hi,
I am posting my queries regarding an efficient design with interactions. 7 attributes will be included with 3 levels each, except one attribute with 4 levels, as follow.
Att 1: 10, 40, 70 (continuous)
Att 2: 20, 60, 100 (continuous)
Att 3: unimpaired, mild, moderate, extreme (dummy)
Att 4: 0, 5, 10 (dummy)
Att 5: 0, 5, 10 (dummy)
Att 6: 0, 2, 4 (dummy)
Att 7: none, moderate, severe (dummy)
I'd like to include att 1, att 2, and att 3 in the interaction, resulting in two-way interactions. Please review the syntax below and advise. It does not run due to some errors I don't know how to fix. I do have some specific questions as well.
* Question 1: can I use random priors denoted by [(n, 0.0, 0.05)] in this design since the interaction term priors should probably not be directional?
* Question 2: could you clarify that I don't need i[(n,0.0, 0.05)]*sleep*impair[0] and i[(n,0.0, 0.05)]*awake[0] ?
* Question 3: are these priors specified appropriate? I saw a reply regarding usage of priors from another posting in this forum that priors can be used to calculate the average contribution of an attribute to utility. Does it pose a dominance issue or something?
Thank you,
Jaein
I am posting my queries regarding an efficient design with interactions. 7 attributes will be included with 3 levels each, except one attribute with 4 levels, as follow.
Att 1: 10, 40, 70 (continuous)
Att 2: 20, 60, 100 (continuous)
Att 3: unimpaired, mild, moderate, extreme (dummy)
Att 4: 0, 5, 10 (dummy)
Att 5: 0, 5, 10 (dummy)
Att 6: 0, 2, 4 (dummy)
Att 7: none, moderate, severe (dummy)
I'd like to include att 1, att 2, and att 3 in the interaction, resulting in two-way interactions. Please review the syntax below and advise. It does not run due to some errors I don't know how to fix. I do have some specific questions as well.
* Question 1: can I use random priors denoted by [(n, 0.0, 0.05)] in this design since the interaction term priors should probably not be directional?
* Question 2: could you clarify that I don't need i[(n,0.0, 0.05)]*sleep*impair[0] and i[(n,0.0, 0.05)]*awake[0] ?
* Question 3: are these priors specified appropriate? I saw a reply regarding usage of priors from another posting in this forum that priors can be used to calculate the average contribution of an attribute to utility. Does it pose a dominance issue or something?
- Code: Select all
Design
;alts=trtA, trtB
;rows=24
;block=2
;bdraws=halton(200)
;eff=(mnl, d, mean)
;alg=swap(stop=total(600mins))
;model:
U(trtA)=b1[0.1]*sleep[70,40,10] +
b2[0.1]*awake[100,60,20] +
b3.dummy[0.3|0.2|0.1]*impair[3,2,1,0] +
b4.dummy[0.2|0.1]*dizzy[2,1,0] +
b5.dummy[0.2|0.1]*abnor[2,1,0] +
b6.dummy[0.2|0.1]*fall[2,1,0] +
b7.dummy[0.2|0.1]*depend[2,1,0] +
i1[(n,0.0, 0.05)]*sleep*awake +
i2[(n,0.0, 0.05)]*sleep*impair[1] +
i3[(n,0.0, 0.05)]*sleep*impair[2] +
i4[(n,0.0, 0.05)]*sleep*impair[3] +
i5[(n,0.0, 0.05)]*awake*impair[1] +
i6[(n,0.0, 0.05)]*awake*impair[2] +
i7[(n,0.0, 0.05)]*awake*impair[3] /
U(trtB)=b1*sleep +
b2*awake +
b3*impair +
b4*dizzy +
b5*abnor +
b6*fall +
b7*depend +
i1[(n,0.0, 0.05)]*sleep*awake +
i2[(n,0.0, 0.05)]*sleep*impair[1] +
i3[(n,0.0, 0.05)]*sleep*impair[2] +
i4[(n,0.0, 0.05)]*sleep*impair[3] +
i5[(n,0.0, 0.05)]*awake*impair[1] +
i6[(n,0.0, 0.05)]*awake*impair[2] +
i7[(n,0.0, 0.05)]*awake*impair[3] $
Thank you,
Jaein