SlideShare a Scribd company logo
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%).

More Related Content

What's hot

Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)Harsh Upadhyay
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Dr Athar Khan
 
Survival Analysis Using SPSS
Survival Analysis Using SPSSSurvival Analysis Using SPSS
Survival Analysis Using SPSSNermin Osman
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statisticsRabea Jamal
 
Logistic Ordinal Regression
Logistic Ordinal RegressionLogistic Ordinal Regression
Logistic Ordinal RegressionSri Ambati
 
ders 8 Quantile-Regression.ppt
ders 8 Quantile-Regression.pptders 8 Quantile-Regression.ppt
ders 8 Quantile-Regression.pptErgin Akalpler
 
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
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression Dr Athar Khan
 
Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppthabtamu biazin
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionpankaj8108
 
Introduction to statistics 2013
Introduction to statistics 2013Introduction to statistics 2013
Introduction to statistics 2013Mohammad Ihmeidan
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spssDr Nisha Arora
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regressionA M
 
Point Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsPoint Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsUniversity of Salerno
 

What's hot (20)

Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
One way anova
One way anovaOne way anova
One way anova
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
 
Survival Analysis Using SPSS
Survival Analysis Using SPSSSurvival Analysis Using SPSS
Survival Analysis Using SPSS
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
 
Logistic Ordinal Regression
Logistic Ordinal RegressionLogistic Ordinal Regression
Logistic Ordinal Regression
 
ders 8 Quantile-Regression.ppt
ders 8 Quantile-Regression.pptders 8 Quantile-Regression.ppt
ders 8 Quantile-Regression.ppt
 
Survival analysis
Survival analysis  Survival analysis
Survival 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
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression
 
Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppt
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Introduction to statistics 2013
Introduction to statistics 2013Introduction to statistics 2013
Introduction to statistics 2013
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
 
Chapter 14
Chapter 14 Chapter 14
Chapter 14
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regression
 
Point Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis testsPoint Estimate, Confidence Interval, Hypotesis tests
Point Estimate, Confidence Interval, Hypotesis tests
 

Similar to 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
 

Similar to 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
 

More from 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
 

More from Dhritiman Chakrabarti (20)

For crossover designs
For crossover designsFor crossover designs
For crossover designs
 
Agreement analysis
Agreement analysisAgreement analysis
Agreement analysis
 
Linear regression analysis
Linear regression analysisLinear regression analysis
Linear regression 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
 

Recently uploaded

一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单nscud
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单ewymefz
 
Using PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDBUsing PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDBAlireza Kamrani
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单ewymefz
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单vcaxypu
 
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Domenico Conte
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单ocavb
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesStarCompliance.io
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单vcaxypu
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictJack Cole
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单ewymefz
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsalex933524
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatheahmadsaood
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJames Polillo
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单ewymefz
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单ukgaet
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .NABLAS株式会社
 

Recently uploaded (20)

一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
Using PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDBUsing PDB Relocation to Move a Single PDB to Another Existing CDB
Using PDB Relocation to Move a Single PDB to Another Existing CDB
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
Professional Data Engineer Certification Exam Guide  _  Learn  _  Google Clou...
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflictSupply chain analytics to combat the effects of Ukraine-Russia-conflict
Supply chain analytics to combat the effects of Ukraine-Russia-conflict
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Slip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp ClaimsSlip-and-fall Injuries: Top Workers' Comp Claims
Slip-and-fall Injuries: Top Workers' Comp Claims
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
Tabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflowsTabula.io Cheatsheet: automate your data workflows
Tabula.io Cheatsheet: automate your data workflows
 
tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
Jpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization SampleJpolillo Amazon PPC - Bid Optimization Sample
Jpolillo Amazon PPC - Bid Optimization Sample
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 

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%).