Linear regression with interaction effect
Hello everyone, I would appreciate help with my regression!
I want to calculate a regression in JASP with the dependent variable (decision) and the two independent variables age group (with two values: young, old), relevance (continuous variable from 1 to 7) and the interaction of age group with relevance.
Actually, relevance is a continuous variable, but I changed it to nominal so that it can be set as a factor.
How can I create the interaction variable in JASP? Is it correct to create the variable under Model, as in the screenshot?
My aim is actually to test whether the two main effects and the interaction effect are significant. Am I right with the linear regression? I cannot see these results differentiated in the output.
I look forward to your answers. Best regards!
Comments
You might find it easier to test this through the ANOVA analysis
If you want to add numeric predictors as well (which you don't have at the moment), then use ANCOVA instead of ANOVA.
Hello, thanks for your response! I was instructed to carry out this analysis with a regression in any case to find out whether the relationship between relevance and decision differs between two age groups. Do you have any idea how this could be done?