SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Binary Logistic
Regression Analysis
Dhritiman Chakrabarti
Assistant Professor,
Dept of Neuroanaesthesiology
and Neurocritical Care,
NIMHANS, Bangalore
What is binary logistic
regression
• It is prediction of a dichotomous nominal scale
outcome variable based on predictor variable/s.
• Coding in SPSS  the outcome variable of interest
should be coded as 1/0 with 1 being for the more
important level.
• Although both nominal and interval scale variables can
be entered as predictor/independent variables, it is
better to code interval scale data into dichotomous
for easier interpretation.
How to on SPSS
• All variables should be in separate columns and outcome variable
should be binary.
• Suppose I wanted to find independent predictors of
Paraesthesia from the data in our “JMI Log reg” worksheet.
• First you need to see, which of the putative predictors are
actually influencing the backache.
• Do univariate analyses such as t-test for interval scale
predictors (BMI/Weight/Height/Age/Duration of DM) and Chi-
sq for dichotomous predictors (DM/Sex/HO Neuropathy) to see
whether they are actually different in those with and without
Paraesthesia.
• Enter those which are significant in the model – here we enter
Age, Duration of DM, DM, HO Neuropathy.
• Go to Analyze  Regression Binary Logistic
• Enter Paraesthesia as “Dependent” and the predictors as
“Covariates”.
• Click “Categorical” tab and transfer the nominal covariates to
“Categorical Covariates” and change Contrast reference
category to First  Continue.
• Any other type of contrast other than Indicator, does not make
sense in categorical data.
• In “Options” tab check the options as shown
below and change outlier definition to 3 SD.
• Continue  Ok.
Output
Tells about any missing cases. Any case with
any missing data of the variables being used,
will be excluded from analysis.
Tells about data encoding. Pay attention to
how it is coded. “Yes” category should be 1.
Block 0: Beginning Block
Skip Iteration history.
Classification table shows the
percentage of correct prediction
with no variables in model.
Skip Variables in equation box.
Variables not in equation Shows the putative
variables with their univariate probabilities of
association with the outcome variable  Same as
Chi-sq and T-tests we had done before
Block 1: Method = Enter
Checks that the new model (with
explanatory variables included) is an
improvement over the baseline model. P <
0.05 is good.
Tells us the predictive ability of the model.
Interpreted similarly as Adjusted R2 in
linear regression. See the Nagelkerke R Sq.
 Here it shows 89.3% of variablity in
Presence of paraesthesia is explained by
the 4 variables entered.
This is a goodness of fit test. If Sig > 0.05,
model is a good fit.
This is classification table with
variables included. Notice it has
improved over the previous 50%
This is the most important table. B is the coefficient of regression (but not
interpretable in log reg), SE is standard error of the B. Wald tells us the
importance of each variable in prediction of dependent, higher the better. Sig. is
the p-value for independent predictive ability of each variable (Its based on the
Wald statistic; <0.05 is good). Exp (B) tells us the Odds ratio for dichotomous
predictors for predicting presence of outcome. For continuous predictors, it tells
the change in odds of outcome with unit change in predictor (here for unit change
in age, the odds of presence of paraesthesia increases by 13.4%)
But did you notice the odds ratio for DM, was less than 1. Meaning that
presence of DM actually prevents Paraesthesia? Isn’t this against what we know
clinically? For this look that the next table – Correlation matrix.
See the high correlation between DM and Duration of DM. Due to this probably
the weird association is being seen. This is called Multicollinearity between
varables  It can distort the overall picture. In this situation its better to
remove the DM categorical, as Duration of DM encapsulates both
presence/absence of DM and the duration, so no loss of information  But
remember whenever you omit or add any variables, the B values will change. So
it becomes an interative process until you come to a final model which includes
all important variables of interest and provides good classification power for
the whole model.
• If there are too many multicollinearities, and you
don’t know which to remove, start with those with
highest SE for B. But remember your models
predictivity changes with removal of each variable.
• So how to use the model. The B coefficients can be
used in similar manner as linear regression to provide
a number (z). Then use the z in a formula (1/1-e-z) to
give probability of the outcome in that individual.
• Suppose in our case, a patient of 55 yrs, with DM for
10 years. So z = 55*0.125 + 10*1.604 = 22.915. So
probability of having Paraesthesia = 1/1-e-22.915 = 1
(meaning 100%).

Weitere ähnliche Inhalte

Was ist angesagt?

Logistic regression
Logistic regressionLogistic regression
Logistic regressionVARUN KUMAR
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionKaushik Rajan
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression AnalysisASAD ALI
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Dr Athar Khan
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionsaba khan
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSSLNIPE
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysisSumit Das
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inferenceJags Jagdish
 
Regression (Linear Regression and Logistic Regression) by Akanksha Bali
Regression (Linear Regression and Logistic Regression) by Akanksha BaliRegression (Linear Regression and Logistic Regression) by Akanksha Bali
Regression (Linear Regression and Logistic Regression) by Akanksha BaliAkanksha Bali
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IJames Neill
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 

Was ist angesagt? (20)

Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysis
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inference
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression analysis
 
Regression (Linear Regression and Logistic Regression) by Akanksha Bali
Regression (Linear Regression and Logistic Regression) by Akanksha BaliRegression (Linear Regression and Logistic Regression) by Akanksha Bali
Regression (Linear Regression and Logistic Regression) by Akanksha Bali
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
Correlation and Simple Regression
Correlation  and Simple RegressionCorrelation  and Simple Regression
Correlation and Simple Regression
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
P value
P valueP value
P value
 
Regression
RegressionRegression
Regression
 
Kendall rank correlation
Kendall rank correlationKendall rank correlation
Kendall rank correlation
 
Tests of significance
Tests of significanceTests of significance
Tests of significance
 

Ähnlich wie Logistic regression analysis

A researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docxA researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docxevonnehoggarth79783
 
Your Paper was well written, however; I need you to follow the f
Your Paper was well written, however; I need you to follow the fYour Paper was well written, however; I need you to follow the f
Your Paper was well written, however; I need you to follow the frochellscroop
 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easyWeam Banjar
 
Chapter 12Choosing an Appropriate Statistical TestiStockph.docx
Chapter 12Choosing an Appropriate Statistical TestiStockph.docxChapter 12Choosing an Appropriate Statistical TestiStockph.docx
Chapter 12Choosing an Appropriate Statistical TestiStockph.docxmccormicknadine86
 
Principal components
Principal componentsPrincipal components
Principal componentsHutami Endang
 
Moderation and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSSModeration and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSSOsama Yousaf
 
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...Musfera Nara Vadia
 
Multinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfMultinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfAlemAyahu
 
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docxBUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docxcurwenmichaela
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.pptmousaderhem1
 
Advice On Statistical Analysis For Circulation Research
Advice On Statistical Analysis For Circulation ResearchAdvice On Statistical Analysis For Circulation Research
Advice On Statistical Analysis For Circulation ResearchNancy Ideker
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis techniqueRajaKrishnan M
 
Why are data transformations a bad choice in statistics
Why are data transformations a bad choice in statisticsWhy are data transformations a bad choice in statistics
Why are data transformations a bad choice in statisticsAdrian Olszewski
 
Factor analysis using spss 2005
Factor analysis using spss 2005Factor analysis using spss 2005
Factor analysis using spss 2005jamescupello
 
Analytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataAnalytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataCTSI at UCSF
 
M08 BiasVarianceTradeoff
M08 BiasVarianceTradeoffM08 BiasVarianceTradeoff
M08 BiasVarianceTradeoffRaman Kannan
 

Ähnlich wie Logistic regression analysis (20)

A researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docxA researcher in attempting to run a regression model noticed a neg.docx
A researcher in attempting to run a regression model noticed a neg.docx
 
Spss software
Spss softwareSpss software
Spss software
 
Your Paper was well written, however; I need you to follow the f
Your Paper was well written, however; I need you to follow the fYour Paper was well written, however; I need you to follow the f
Your Paper was well written, however; I need you to follow the f
 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easy
 
Time series basics
Time series basicsTime series basics
Time series basics
 
Chapter 12Choosing an Appropriate Statistical TestiStockph.docx
Chapter 12Choosing an Appropriate Statistical TestiStockph.docxChapter 12Choosing an Appropriate Statistical TestiStockph.docx
Chapter 12Choosing an Appropriate Statistical TestiStockph.docx
 
Principal components
Principal componentsPrincipal components
Principal components
 
Moderation and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSSModeration and Meditation conducting in SPSS
Moderation and Meditation conducting in SPSS
 
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...
STATISTICS : Changing the way we do: Hypothesis testing, effect size, power, ...
 
Multinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfMultinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdf
 
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docxBUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
BUS 308 Week 5 Lecture 3 A Different View Effect Sizes .docx
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
 
Advice On Statistical Analysis For Circulation Research
Advice On Statistical Analysis For Circulation ResearchAdvice On Statistical Analysis For Circulation Research
Advice On Statistical Analysis For Circulation Research
 
Selection of appropriate data analysis technique
Selection of appropriate data analysis techniqueSelection of appropriate data analysis technique
Selection of appropriate data analysis technique
 
Why are data transformations a bad choice in statistics
Why are data transformations a bad choice in statisticsWhy are data transformations a bad choice in statistics
Why are data transformations a bad choice in statistics
 
Factor analysis using spss 2005
Factor analysis using spss 2005Factor analysis using spss 2005
Factor analysis using spss 2005
 
Analytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataAnalytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational Data
 
Discriminant analysis.pptx
Discriminant analysis.pptxDiscriminant analysis.pptx
Discriminant analysis.pptx
 
Validity andreliability
Validity andreliabilityValidity andreliability
Validity andreliability
 
M08 BiasVarianceTradeoff
M08 BiasVarianceTradeoffM08 BiasVarianceTradeoff
M08 BiasVarianceTradeoff
 

Mehr von Dhritiman Chakrabarti

Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groupsDhritiman Chakrabarti
 
Inferential statistics quantitative data - anova
Inferential statistics   quantitative data - anovaInferential statistics   quantitative data - anova
Inferential statistics quantitative data - anovaDhritiman Chakrabarti
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statisticsDhritiman Chakrabarti
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeDhritiman Chakrabarti
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryDhritiman Chakrabarti
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisDhritiman Chakrabarti
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesDhritiman Chakrabarti
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewDhritiman Chakrabarti
 

Mehr von Dhritiman Chakrabarti (20)

For crossover designs
For crossover designsFor crossover designs
For crossover designs
 
Agreement analysis
Agreement analysisAgreement analysis
Agreement analysis
 
Inferential statistics correlations
Inferential statistics correlationsInferential statistics correlations
Inferential statistics correlations
 
Inferential statistics quantitative data - single sample and 2 groups
Inferential statistics   quantitative data - single sample and 2 groupsInferential statistics   quantitative data - single sample and 2 groups
Inferential statistics quantitative data - single sample and 2 groups
 
Inferential statistics nominal data
Inferential statistics   nominal dataInferential statistics   nominal data
Inferential statistics nominal data
 
Inferential statistics quantitative data - anova
Inferential statistics   quantitative data - anovaInferential statistics   quantitative data - anova
Inferential statistics quantitative data - anova
 
Types of variables and descriptive statistics
Types of variables and descriptive statisticsTypes of variables and descriptive statistics
Types of variables and descriptive statistics
 
Data entry in Excel and SPSS
Data entry in Excel and SPSS Data entry in Excel and SPSS
Data entry in Excel and SPSS
 
Study designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample sizeStudy designs, randomization, bias errors, power, p-value, sample size
Study designs, randomization, bias errors, power, p-value, sample size
 
Anaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgeryAnaesthesia for functional neurosurgery
Anaesthesia for functional neurosurgery
 
Epilepsy and anaesthesia
Epilepsy and anaesthesiaEpilepsy and anaesthesia
Epilepsy and anaesthesia
 
Icp monitoring seminar
Icp monitoring seminarIcp monitoring seminar
Icp monitoring seminar
 
Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosis
 
Bronchospasm during induction
Bronchospasm during inductionBronchospasm during induction
Bronchospasm during induction
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubes
 
Breathing systems
Breathing systemsBreathing systems
Breathing systems
 
Brachial plexus block
Brachial plexus blockBrachial plexus block
Brachial plexus block
 
Bph
BphBph
Bph
 
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truviewBougie, trachlite , laryngeal tube , combitube , i gel ,truview
Bougie, trachlite , laryngeal tube , combitube , i gel ,truview
 
Blood transfusion
Blood transfusionBlood transfusion
Blood transfusion
 

Kürzlich hochgeladen

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...shivangimorya083
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 

Kürzlich hochgeladen (20)

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 

Logistic regression analysis

  • 1. Binary Logistic Regression Analysis Dhritiman Chakrabarti Assistant Professor, Dept of Neuroanaesthesiology and Neurocritical Care, NIMHANS, Bangalore
  • 2. What is binary logistic regression • It is prediction of a dichotomous nominal scale outcome variable based on predictor variable/s. • Coding in SPSS  the outcome variable of interest should be coded as 1/0 with 1 being for the more important level. • Although both nominal and interval scale variables can be entered as predictor/independent variables, it is better to code interval scale data into dichotomous for easier interpretation.
  • 3. How to on SPSS • All variables should be in separate columns and outcome variable should be binary. • Suppose I wanted to find independent predictors of Paraesthesia from the data in our “JMI Log reg” worksheet. • First you need to see, which of the putative predictors are actually influencing the backache. • Do univariate analyses such as t-test for interval scale predictors (BMI/Weight/Height/Age/Duration of DM) and Chi- sq for dichotomous predictors (DM/Sex/HO Neuropathy) to see whether they are actually different in those with and without Paraesthesia. • Enter those which are significant in the model – here we enter Age, Duration of DM, DM, HO Neuropathy. • Go to Analyze  Regression Binary Logistic
  • 4. • Enter Paraesthesia as “Dependent” and the predictors as “Covariates”. • Click “Categorical” tab and transfer the nominal covariates to “Categorical Covariates” and change Contrast reference category to First  Continue. • Any other type of contrast other than Indicator, does not make sense in categorical data.
  • 5. • In “Options” tab check the options as shown below and change outlier definition to 3 SD. • Continue  Ok.
  • 6. Output Tells about any missing cases. Any case with any missing data of the variables being used, will be excluded from analysis. Tells about data encoding. Pay attention to how it is coded. “Yes” category should be 1.
  • 7. Block 0: Beginning Block Skip Iteration history. Classification table shows the percentage of correct prediction with no variables in model. Skip Variables in equation box. Variables not in equation Shows the putative variables with their univariate probabilities of association with the outcome variable  Same as Chi-sq and T-tests we had done before
  • 8. Block 1: Method = Enter Checks that the new model (with explanatory variables included) is an improvement over the baseline model. P < 0.05 is good. Tells us the predictive ability of the model. Interpreted similarly as Adjusted R2 in linear regression. See the Nagelkerke R Sq.  Here it shows 89.3% of variablity in Presence of paraesthesia is explained by the 4 variables entered. This is a goodness of fit test. If Sig > 0.05, model is a good fit.
  • 9. This is classification table with variables included. Notice it has improved over the previous 50% This is the most important table. B is the coefficient of regression (but not interpretable in log reg), SE is standard error of the B. Wald tells us the importance of each variable in prediction of dependent, higher the better. Sig. is the p-value for independent predictive ability of each variable (Its based on the Wald statistic; <0.05 is good). Exp (B) tells us the Odds ratio for dichotomous predictors for predicting presence of outcome. For continuous predictors, it tells the change in odds of outcome with unit change in predictor (here for unit change in age, the odds of presence of paraesthesia increases by 13.4%)
  • 10. But did you notice the odds ratio for DM, was less than 1. Meaning that presence of DM actually prevents Paraesthesia? Isn’t this against what we know clinically? For this look that the next table – Correlation matrix. See the high correlation between DM and Duration of DM. Due to this probably the weird association is being seen. This is called Multicollinearity between varables  It can distort the overall picture. In this situation its better to remove the DM categorical, as Duration of DM encapsulates both presence/absence of DM and the duration, so no loss of information  But remember whenever you omit or add any variables, the B values will change. So it becomes an interative process until you come to a final model which includes all important variables of interest and provides good classification power for the whole model.
  • 11. • If there are too many multicollinearities, and you don’t know which to remove, start with those with highest SE for B. But remember your models predictivity changes with removal of each variable. • So how to use the model. The B coefficients can be used in similar manner as linear regression to provide a number (z). Then use the z in a formula (1/1-e-z) to give probability of the outcome in that individual. • Suppose in our case, a patient of 55 yrs, with DM for 10 years. So z = 55*0.125 + 10*1.604 = 22.915. So probability of having Paraesthesia = 1/1-e-22.915 = 1 (meaning 100%).