I have to analyze whether the effect of one independent continuous variables on a dependent continuous variable is different for two different values (gender: males vs. females) of a categorical independent variable. So my question: how do I best do that?
Is it better to group my dataset according to gender (coded as 0 and 1) and run correlations for males and females separately? If that's a good idea, how do I then test, whether the correlation coefficients that result for the two regressions differ significantly from each other?
Is there a more elegant way in which I can directly test for an interaction of the categorical and the continuous variable?
Thank you very much!