I would like to look for an interaction between my effects coded attribute ‘Pain’ and my linear attribute ‘Motion’. The ‘Pain’ attribute is ordered (none, mild, moderate, severe). My code is below but I’m not exactly sure how Ngene interprets this coding. Does it essentially treat the ‘pain’ attribute as linear to produce a single interaction value with ‘motion’?
Design
? assume non-linearity (effects coding)for Pain plus interaction Pain*Motion
;alts= Health State A*,Health State B*
;rows=12
;eff = (mnl,d)
;model:
U (Health State A)=
b2.effects[0|0|0]*Pain[0,1,2,3]
+ b3*Hair[0,1] +b4*Feed[0,1] + b5*Hygiene[0,1] + b6*Shirt[0,1] + b7*Shoes[0,1]
+ b8*Motion[0,1,2]
+ b9*Stability[0,1]
+ i1*Pain*Motion /
U (Health State B)= b2*Pain
+ b3*Hair[0,1] +b4*Feed[0,1] + b5*Hygiene[0,1] + b6*Shirt[0,1] + b7*Shoes[0,1]
+ b8*Motion
+ b9*Stability
+ i1*Pain*Motion $