Continuous by Categorical Interaction in Linear Regression (SPSS Tutorial Video #27)

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • In this video, I explain how to conduct a continuous by categorical interaction in linear regression using SPSS. There are seven steps demonstrates:
    1. Coding a categorical variable appropriately (dummy coding)
    2. Centering a continuous variable
    3. Computing an interaction term
    4. Running the regression itself
    5. Checking model assumptions like (heteroskedasticity)
    6. Interpreting the model coefficients
    7. Plotting the results.
    This SPSS tutorial series is designed to teach you the basics of how to analyze and interpret the results of data using SPSS. I will cover everything from the very basics of the main windows within SPSS, to manipulating data, to running and interpreting meaningful analyses like t-tests, ANOVA, regression, and many more, and visualizing results.
    The data file used in this video can be found here: drive.google.c...
    Video tutorial and walkthrough of the data file used in this video: • Introduction to Data F...
    REGRESSION VIDEO about basic Single Variable Linear Regression: • Linear Regression in S...
    REGRESSION VIDEO about Multivariable Linear Regression: • Multivariable Linear R...
    REGRESSION VIDEO about Continuous by Categorical Interactions with Linear Regression: • Continuous by Categori...
    REGRESSION VIDEO about Continuous by Continuous Interactions with Linear Regression: • Continuous by Continuo...
    Video about computing variables in SPSS: • Computing Variables in...
    Video about descriptive statistics in SPSS: • Descriptive Statistics...
    Playlist of video covering INTUITION for statistics and data science: • Data Intuition
    All the SPSS tutorial videos are in this playlist: • SPSS Tutorials
    Learn more about who I am and why I'm doing this here: • Data Demystified - Who...
    Follow me at:
    LinkedIn: / jeff-galak-768a193a
    Patreon: / datademystified
    Website: www.jeffgalak.c...
    Equipment Used for Filming:
    Nikon D7100: amzn.to/320N1FZ
    Softlight: amzn.to/2ZaXz3o
    Yeti Microphone: amzn.to/2ZTXznB
    iPad for Teleprompter: amzn.to/2ZSUkNh
    Camtasia for Video Editing: amzn.to/2ZRPeAV

Комментарии • 42

  • @rachelgolla2543
    @rachelgolla2543 3 года назад +1

    This was so helpful. Commenting for the algorithm so other people can find the help they need.

    • @DataDemystified
      @DataDemystified  3 года назад

      Thanks! I’m so glad it was helpful for you!

  • @gracedenney3061
    @gracedenney3061 5 месяцев назад +1

    SOOOOOO helpful, thank you!

  • @jingliu6644
    @jingliu6644 3 года назад +1

    Fantastic prof!!! really helps!!!

  • @Evan-cn1ki
    @Evan-cn1ki 7 месяцев назад

    Really thanks a lot!

  • @nassibbb2
    @nassibbb2 3 месяца назад

    thats great, thanks!

  • @charlottedemoor5212
    @charlottedemoor5212 3 года назад +2

    Thank you for this video, it is very helpful and easy to follow! I've used this video as guidance for how to interpret an interaction with own data and would like to write up my results. Please could you reply to this with an example of how you would write up the results in this video, preferably in APA format? Thanks!

    • @DataDemystified
      @DataDemystified  3 года назад +2

      Hi Charlotte. Thank you for your comment. I'd strongly suggest finding a published paper that reports a 2-way interaction like this one and copying their formatting. Not only will that give you a good sense of what APA style requires, but also give you a good sense of how to think about the key parts of what you are reporting. If you open up, say Journal of Personality and Social Psychology (JPSP), you'll find countless examples of this type of interaction and how it is reported. Good luck to you.

  • @darwinkilledgod
    @darwinkilledgod Год назад +1

    I'm confused. How can the interaction term work if all of the women have scores of 0 on interaction? It all seems to depend on whether you make men = 0 or women = 0. I ran this on a data file I have. When males are coded as 0 I get a different pattern of significance than when the females are coded as 0. How can that be okay?

  • @jorisjannink6952
    @jorisjannink6952 3 года назад +3

    Hello, I've got a question, as you said the topic of having multiple categorical levels which would result in multiple dummy variables would be for another video, I wonder if you already made that video?:) I'm doing a mutiple regression analyses using 1 continous variable and a categorical variable with 4 levels, which I have made dummies for, however I can't find how to do the interaction using mutiple dummies anywhere online, I hope you can help me out, it is for my master thesis :).

    • @DataDemystified
      @DataDemystified  3 года назад +1

      Hi there. Sadly, no, I haven't made that yet. Here's a quick tip: don't make 4 dummies for 4-level variable. You always make N-1 dummy variables (3, in your case). To interact those with the continuous variable, you'd then make 3 more new variables (Continuous x Dummy1, Continuous x Dummy2, Continuous x Dummy3). You'd then include ALL of it (continuous variable, dummies, and interactions) in the regression. The catch, though is that the dummies all are relative to a different level (whichever level you didn't make a dummy variable for), so the interpretation of the interactions is that influence of the continuous variable, on the DV, is different when comparing the referent level to the dummy variable level. I hope that helps! (PS. I probably should make this video sooner rather than later!)

    • @jorisjannink6952
      @jorisjannink6952 3 года назад

      @@DataDemystified thank you so much that really helps!! :-)

    • @b0tslayer
      @b0tslayer 3 года назад +1

      @@DataDemystified in this case you describe, what do you include for "set markers by" to get the plot? Just the regular categorical variable?

    • @DataDemystified
      @DataDemystified  3 года назад

      @@b0tslayer That's exactly right!

    • @georgiosbaxevanis7811
      @georgiosbaxevanis7811 Год назад

      @@DataDemystified Hello, thank you for the amazing video!! Have you finally made the new video with multiple categorical levels? Thank you!!

  • @arambulm3
    @arambulm3 2 месяца назад

    Hello Dr., I have a problem with some data analysis, let me explain: a bioassay was conducted to determine which diet (treatment) is more effective in shrimp growth. A quadratic regression was performed (SPSS v26), but now we want to perform a broken-line regression to see what the breakpoint is between diet 3 and diet 4. Could you help guide me on how to do this in SPSS?

  • @FionaPlaysGaming
    @FionaPlaysGaming Год назад

    Thank you for the video. I have a question about the scatterplot. If we use non-centered variable for the predictor, will the scatterplot change? I am not quite sure whether we should use non-centered variable or centered variable when we report it in the paper. Non-centered variable makes it hard to interpret because you cannot see the previous values now.

  • @rubenmultiking
    @rubenmultiking 2 года назад

    Firstly, Thanks a lot for this video series, im doing my masters thesis and i have had some offtime from academics so this really helps! I have one question, does anyone know a source to explain the importance of centering more extensivly? I would like to know more about why it is imortant!

  • @katarzynagustavsson4983
    @katarzynagustavsson4983 2 года назад +2

    What if I have multiple groups turned into dummy variables but I also have multiple continuous predictors? What should the interaction variable be then?

    • @DataDemystified
      @DataDemystified  2 года назад

      You would have a lot of interaction terms. EVery single dummy coded variable would be interacted with every single continuous variable (assuming you want to test all possible interactions).

    • @katarzynagustavsson4983
      @katarzynagustavsson4983 2 года назад

      @@DataDemystified And separate variables need to have significant coefficients or do I only look at the entire model when writing down the regression coefficients as the equation in the video?

    • @katarzynagustavsson4983
      @katarzynagustavsson4983 2 года назад

      @@DataDemystified I would greatly appreciate a response to my comment in this thread.

  • @bethanycorbett8291
    @bethanycorbett8291 2 года назад

    Did you ever make the video re the follow up procedure for a significant continuous x categorical interaction? Many thanks.

  • @cesarhoyosalvarez6569
    @cesarhoyosalvarez6569 3 года назад +1

    Thank you for this excellent video. Quick question, is it possible to add other continuous variables to the model?

    • @DataDemystified
      @DataDemystified  3 года назад +1

      Thank you! Yes, absolutely. You can make your model as complex as appropriate to your research question. For instance, if you have three predictor variables (IVs), your model could be: Y = A + B + C + A*B + A*C + B*C + A*B*C. What's critical is that if you include a higher order interaction (e.g. A*B*C) you MUCH include all the subordinate interactions (e.g. A*B + A*C + B*C) in the model. Not doing so will make the Beta coefficient for the three-way interaction uninterpretable.

    • @cesarhoyosalvarez6569
      @cesarhoyosalvarez6569 3 года назад +1

      @@DataDemystified Gotcha. Thank you. Can my model still be valid even if I choose not to include a higher-order interaction and I just input the subordinate interactions?

    • @DataDemystified
      @DataDemystified  3 года назад +1

      @@cesarhoyosalvarez6569 Absolutely!

    • @cesarhoyosalvarez6569
      @cesarhoyosalvarez6569 3 года назад

      @@DataDemystified Got it. Thank you so much. Oh and one last thing, if I did a previous Factor analysis do I need to center my variables/ I also standardized them 0-1. None of them are correlated

    • @DataDemystified
      @DataDemystified  3 года назад +1

      @@cesarhoyosalvarez6569 Centering is generally a good idea in regression analysis (though not always needed).

  • @TheSGPhoenix
    @TheSGPhoenix 3 года назад

    awesome video, thank you very much!
    So does that mean that when you have significance in the ANOVA table, you have an interaction? Or does the significance for the coefficient also has to be < .05 to be valuable?

    • @DataDemystified
      @DataDemystified  3 года назад

      Glad you like the video! The ANOVA in a regression just tells you if the model, overall, has any predictive power. The interaction is determined by the specific interaction coefficient.

    • @TheSGPhoenix
      @TheSGPhoenix 3 года назад +1

      @@DataDemystified thanks for the answer! This means that if my interaction coefficient does not have significance, I don't have an interaction? The slopes of the plots don't really look different, but this interaction is new to me.. So I find it hard to interpret my results

    • @DataDemystified
      @DataDemystified  3 года назад

      Correct

  • @reutbinyaminnetser386
    @reutbinyaminnetser386 Год назад

    Hi, thanks for the video. Can you please show how to report these results?

  • @ranjanachannoo7280
    @ranjanachannoo7280 Год назад

    What would be your hypotheses?