GAMLj and Linear Regression giving me different PVals
Posted: Tue Feb 14, 2023 11:12 pm
There is a significant difference in response between two conditions. We want to see if this difference goes away by accounting for another variable (i.e. to see whether it is fully explained by that variable).
So we have Response ~ Condition * Explanatory Variable
Super simple.
If I run a linear regression (default Jamovi) I get:
Condition p = 0.186
Explanatory Variable p = 0.109
Interaction = 0.014
With the explanatory variable in the model condition goes from p < .001 to .ns so it seems like my explanatory variable explains the difference.
If I run the same analysis with GAMLj General Linear Model this doesn't happen.
Condition p < 0.001
Explanatory Variable p = 0.815
Interaction = 0.014
Can anyone explain what is going on? Which one is correct? The GAMLj one just seems odd but there is probably something I am missing about how a GLM is different from a Linear Regression?
So we have Response ~ Condition * Explanatory Variable
Super simple.
If I run a linear regression (default Jamovi) I get:
Condition p = 0.186
Explanatory Variable p = 0.109
Interaction = 0.014
With the explanatory variable in the model condition goes from p < .001 to .ns so it seems like my explanatory variable explains the difference.
If I run the same analysis with GAMLj General Linear Model this doesn't happen.
Condition p < 0.001
Explanatory Variable p = 0.815
Interaction = 0.014
Can anyone explain what is going on? Which one is correct? The GAMLj one just seems odd but there is probably something I am missing about how a GLM is different from a Linear Regression?