To make things simple, let say I ran a basic psychometric experiment and I want to test whether the response time (i.e. a continuous variable) can predict the performance score (i.e. a continuous variable). Besides, there are 3 different conditions (e.g. Conditions A,B,C). I want to test whether the effect of response time differs between conditions.
Particularly, I am only interested in the difference in effect of response time between Conditions A and C. Hence, I create an effect-coded variable (i.e. X2) in which Conditions A,B,C are coded as 1,0,-1 respectively (please see the table below for illustration). And then I carry out a regression including the following regressors: response time (i.e. X1), the effect-coded variable for conditions (i.e. X2), and an interaction term by multiplying X1 and X2 (i.e. X3).
Response time | Condition | X1 | X2 | X3 |
---|---|---|---|---|
335 | A | 335 | 1 | 335 |
253 | B | 253 | 0 | 0 |
166 | C | 166 | -1 | -166 |
420 | B | 420 | 0 | 0 |
347 | A | 347 | 1 | 347 |
506 | C | 506 | -1 | -506 |
I wonder if I am doing the correct thing? Any explanation and clarification would be appreciated. Thank you.