
Logistic Regression in SPSS
Logistic Regression in SPSS
Logistic Regression in SPSS
Logistic Regression is a supervised learning technique, which is used to understand the relationship between a dependent variable and one or more independent variables. Logistic regression is conducted by estimating the probabilities and by using the logistic regression equation.
Assumptions
1. Logistic regression requires the dependent variable to be binary, i.e., 0 and 1.
2. Logistic regression requires the observations to be independent of each other.
3. No Multicollinearity is assumed among the independent variables.
4. Linearity of independent variables and log odds is assumed.
Here, we have taken Hypertension as a dependent variable and we have considered Stress, Anxiety and Depression as the independent variables.
In the dependent variable (Hypertension), we labelled 0 as ‘Hypertensive’ and 1 as ‘Normotensive’. In the independent variables (Stress, Anxiety and Depression), we labelled 0 as ‘Stress’ and 1 as ‘Normal’, 0 as ‘Anxiety’ and 1 as ‘Normal’, and 0 as ‘Depression’ and 1 as ‘Normal’.
In SPSS, Logistic Regression is found in Analyze > Regression > Binary Logistic Regression

Then, we will get Logistic Regression dialog box.

We have to add the dependent variable (Hypertension) in the ‘Dependent’ box and add the independent variables (Stress, Anxiety, and Depression) in the ‘Covariates’ box.

In the Categorical dialog box, add the categorical variables (Stress, Anxiety, and Depression) into the ‘Categorical Covariates’ box from the ‘Covariates’ box.


In the ‘Change Contrast’ group, change the reference category and then click on ‘Change’ button.
Here, people with anxiety are compared with normal people. Here, normal people are acting as a reference category and thus ‘Last’ is chosen. Then, click on ‘Continue’.
In the ‘Options’ dialog box, add ‘CI for exp(B)’ in the ‘Statistics and Plots’ group and add ‘At last step’ in the ‘Display’ group.

Click on ‘Continue’ and ‘Ok’.
Output of Logistic Regression
First, we will get the ‘Case Processing Summary’ table, and then the ‘Dependent Variable Encoding’ and ‘Categorical Variable Codings’ tables.



These tables give information about the cases that were included and excluded from the analysis, coding of the dependent variable, and coding of the independent categorical variables.
Next, we will get the ‘Classification Table’, ‘Variables in the Equation’ and ‘Variables not in the Equation’ tables for the beginning block. These tables give the output of a null model that has no predictors and has just the intercept.



Then, we will get the tables for the model with predictors.
First, we will get the ‘Omnibus Tests of Model Coefficients’.

This table gives the Chi Square statistic and its significance level. Here, statistics for ‘Step’, ‘Model’ and ‘Block’ are the same because we have not used stepwise logistic regression or blocking.
The model was statistically significant when compared to the null model (Chi Square = 18.866, P value = 0.000).
Then, we will get the ‘Model Summary’ table.

‘Model Summary’ table contains the ‘Cox & Snell R Square’ and ‘Nagelkerke R Square’ values, which are used for calculating the explained variation. Nagelkerke’s R square is normally used and it is a version of the Cox & Snell R square that adjusts the scale of the statistic to cover the full range from 0 to 1. In this case, we can say that 13.1% change in the dependent variable can be accounted by the predictor variables in the model.
After this, we will get the ‘Classification Table’.

‘The cut value is .500’ – This means that if the probability of a case being classified into the ‘Hypertensive’ category is greater than .500, then that particular case is classified as the ‘Hypertensive’ category. Otherwise, the case is classified as the ‘Normotensive’ category.
When we add the independent variables, the model classifies 71.1% of cases correctly (Overall Percentage = 71.1). This is also called as percentage accuracy in classification.
The model predicted 35.4% of participants with hypertension as hypertensive and it predicted 89.6% of participants without hypertension as normotensive.
The ‘Variables in the Equation’ table shows the contribution of each independent variable to the model and its statistical significance.

Data: Logistic_Regression_Data.sav
Are you interested to attend our Workshops?
Click here to see our future workshop schedule…
7 Comments
asporlogistic.com.ua
December 24, 2023I enjoy what you guys tend to be up too. Such clever work and
reporting! Keep up the wonderful works guys I’ve included you
guys to my personal blogroll.
asporlogistic.com.ua
March 2, 2024I’m really impressed with your writing skills as well as with the layout on your blog.
Is this a paid theme or did you modify it yourself?
Either way keep up the excellent quality writing, it is rare to see a nice
blog like this one nowadays.
asporlogistic.com.ua
March 21, 2024Hello there! I could have sworn I’ve been to this
blog before but after checking through some of the post I
realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be bookmarking and checking back often!
asporlogistic.com.ua
April 5, 2024My spouse and I absolutely love your blog and find the
majority of your post’s to be what precisely I’m looking for.
Would you offer guest writers to write content to suit your needs?
I wouldn’t mind producing a post or elaborating on many of the
subjects you write in relation to here. Again, awesome website!
asporlogistic.com.ua
April 22, 2024Having read this I believed it was very enlightening. I appreciate you spending some time
and energy to put this informative article together.
I once again find myself personally spending a significant amount of time both reading and
leaving comments. But so what, it was still worthwhile!
asporlogistic.com.ua
May 3, 2024I have read so many posts concerning the blogger
lovers however this paragraph is truly a fastidious piece of writing,
keep it up.
asporlogistic.com.ua
June 4, 2024You actually make it seem so easy with your presentation but I
find this matter to be actually something which I think I would
never understand. It seems too complicated and extremely broad for me.
I am looking forward for your next post, I’ll try to get the hang of
it!