Dummy as Random Slopes
Posted: Wed Jan 15, 2014 12:45 pm
Hi,
I am running a Random Slopes Model with five levels. I want to test whether the variance explained by the effect at level 5 is equal in two different groups (group 1 and 2). To test this, I construct a dummy that takes the value of 1 when the group variable is equal 2, and a value of 0 when the group variable is equal 1. Then, I add this dummy variable at the level 5 as a random slope. The DIC of this model is lower than the model without the random slope and the COV(effectlevel5, dummy) is negative. I interpret this result in the following way: the variance explained by the effect at level 5 is significantly lower when the dummy takes the value of 1, that is, when the group variables is equal 2.
Then, I tried to build the dummy in the opposite way but I did not find opposite results. Now, the dummy takes the value of 1 when the group variable is equal 1, and a value of 0 when the group variable is equal 2. I would expect opposite results to the ones reported above. That is, I would expect that the variance explained by the effect at level 5 is significantly higher when the dummy takes the value of 1, that is, when the group variable is equal 1. However, I find the following results. The DIC of this model is higher than the model without the random slope and the COV(effectlevel5, dummy) is negative. I interpret this result in the following way: the variance explained by the effect at level 5 is not significantly lower when the dummy takes the value of 1, that is, when the group variable is equal 1.
Overall, it seems that the results change depending on the way I specify the dummy.
- Am I interpreting the results correctly?
- What should I change in my model?
- Why do results change depending on the way I specify the dummy?
Thank you in advance for your support.
Best!
I am running a Random Slopes Model with five levels. I want to test whether the variance explained by the effect at level 5 is equal in two different groups (group 1 and 2). To test this, I construct a dummy that takes the value of 1 when the group variable is equal 2, and a value of 0 when the group variable is equal 1. Then, I add this dummy variable at the level 5 as a random slope. The DIC of this model is lower than the model without the random slope and the COV(effectlevel5, dummy) is negative. I interpret this result in the following way: the variance explained by the effect at level 5 is significantly lower when the dummy takes the value of 1, that is, when the group variables is equal 2.
Then, I tried to build the dummy in the opposite way but I did not find opposite results. Now, the dummy takes the value of 1 when the group variable is equal 1, and a value of 0 when the group variable is equal 2. I would expect opposite results to the ones reported above. That is, I would expect that the variance explained by the effect at level 5 is significantly higher when the dummy takes the value of 1, that is, when the group variable is equal 1. However, I find the following results. The DIC of this model is higher than the model without the random slope and the COV(effectlevel5, dummy) is negative. I interpret this result in the following way: the variance explained by the effect at level 5 is not significantly lower when the dummy takes the value of 1, that is, when the group variable is equal 1.
Overall, it seems that the results change depending on the way I specify the dummy.
- Am I interpreting the results correctly?
- What should I change in my model?
- Why do results change depending on the way I specify the dummy?
Thank you in advance for your support.
Best!