Hypothesis: Men are more likely to vote than women.
RECODE vote (1=1) (2=0) INTO vote_dummy.
VARIABLE LABELS vote_dummy ‘voted last election dummy’.
VALUE LABELS vote_dummy 0’no’ 1’yes’.
fre vote vote_dummy.
RECODE gndr (1=0) (2=1) INTO gndr_dummy.
VARIABLE LABELS gndr_dummy ‘Gender dummy variable’.
VALUE LABELS gndr_dummy 0’male’ 1’female’.
fre gndr gndr_dummy.
LOGISTIC REGRESSION vote_dummy WITH gndr_dummy.
*If you want to create a graph:.
CROSSTABS vote_dummy BY gndr_dummy /CELLS=COLUMN.
Exp(b1): The odds of voting among women are 0.871 times as low as among men. The odds of voting among women are [(0.871-1)100=12,9] % lower than among men.
Exp(b0): The odds of voting among men are 3.012.
Exp(b0)*Exp(b1): The odds of voting among women are (3.012*0.871).
b1: The log odds of voting among women is by 0,139 lower than among men. The log odds of voting among women are [(-0,139-1)100] % lower among men.
b0: The log odds of voting among men are 1.103.
b0+b1: The log odds of voting among women are (-0,139+1.103).
Conclusion: The p-value is higher than 0,05, so we do not have evidence to conclude that gender has an effect on voting.