+ Reply to Thread
Results 1 to 6 of 6

Thread: Logistic Regression with interactions and contrasts

  1. #1
    Points: 12,976, Level: 74
    Level completed: 32%, Points required for next Level: 274

    Posts
    154
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Logistic Regression with interactions and contrasts




    Hello All,

    I need some advice for choosing the correct model. I have 3 binary variables: Risk (0 = the person doesn't take financial risks, 1 = the person takes financial risks), gender (0 = female, 1 = male), and type of person (type 0 vs. type 1). The types are well defined, but for me, it's a binary variable for comparison. The questions of interest are: 1. Do type 0 males take more risks than females (of any type)? 2. Does type 0 males takes more risks than type 1 males? 3. Same like question 2, just for females.

    Which model should I use? I thought maybe logistic regression, with interaction and perhaps contrasts, but I am not sure. Could you please advice me on which model is most appropriate? I will be using SPSS, so if contrasts are required, I would appreciate a tip on how to do it there.

    Thank you in advance !

  2. #2
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Logistic Regression with interactions and contrasts

    Binary variables are usually referred to as dummy variables when they are predictors. Its not clear to me if they are what you are predicting [Y] or the predicting variables.

    You need to clarify what variable is being predicted and which is predicting it. Contrast are useful, but not required (more often they are used in ANOVA, but they can be used in some forms of regression - not sure about logistic regression). You have to have a reason to specify interaction. Do you have one?
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  3. #3
    Human
    Points: 12,676, Level: 73
    Level completed: 57%, Points required for next Level: 174
    Awards:
    Master Tagger
    GretaGarbo's Avatar
    Posts
    1,362
    Thanks
    455
    Thanked 462 Times in 402 Posts

    Re: Logistic Regression with interactions and contrasts

    If risk is the dependent variable and gender and type of person are the explanatory factors, then I suggest that you merge the two factors into one factor so that you get a "gen_type" factor with four levels: (female+type 0), (female+type 1), (male+type 0) and (male+type 1). Then you can do significance testing between pairs of each one of them.

    The effects of this one-factor-with-four-levels can also be estimated with a two-factor model with one overall mean (an intercept), a main effects for gender, a main effect for person type and an interaction effect between the two factors. (Note that this is also four estimated parameters and it will give the same numerical result as the one-factor model.)

    I suggest a one factor model because it is easier for the original poster.

    (By the way, you don't need any specific reason to specify an interaction effect. And it is implicit in a one factor model.)

  4. #4
    Fortran must die
    Points: 58,790, Level: 100
    Level completed: 0%, Points required for next Level: 0
    noetsi's Avatar
    Posts
    6,532
    Thanks
    692
    Thanked 915 Times in 874 Posts

    Re: Logistic Regression with interactions and contrasts

    You should, but of course don't have to, have some theoretical reason to specify a variable for ANOVA or regression including an interaction. Or so I was taught
    "Very few theories have been abandoned because they were found to be invalid on the basis of empirical evidence...." Spanos, 1995

  5. #5
    Points: 12,976, Level: 74
    Level completed: 32%, Points required for next Level: 274

    Posts
    154
    Thanks
    10
    Thanked 2 Times in 2 Posts

    Re: Logistic Regression with interactions and contrasts

    Thank you both for replying. Indeed risk is the dependent variable, while type and gender are dummies.

    I though that you always check if the interaction is significant. The reason I though of contrasts was because I am asked about specific comparisons, e.g. Do type 0 males take more risks than females?

  6. #6
    Omega Contributor
    Points: 38,334, Level: 100
    Level completed: 0%, Points required for next Level: 0
    hlsmith's Avatar
    Location
    Not Ames, IA
    Posts
    6,998
    Thanks
    398
    Thanked 1,186 Times in 1,147 Posts

    Re: Logistic Regression with interactions and contrasts


    Yes, use logistic regression.


    GG's approach will work and an equivalent to the interaction would be if 1,1 - 1,0 - 0,1 + 0,0 > 0 (1,1 = yes to both groups,...,0,0 = no to both groups). The other thing you should do is determine the probability of risk for each unique grouping and plot all four of these values on a graph. Next, what you will look for is that 1,1 is greater than the individual effects of gender or type summed together.
    Stop cowardice, ban guns!

  7. The Following User Says Thank You to hlsmith For This Useful Post:

    Yankel (06-10-2016)

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats