SlideShare uma empresa Scribd logo
1 de 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%).

Mais conteúdo relacionado

Mais procurados

Logistic regression
Logistic regressionLogistic regression
Logistic regression
saba khan
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
Tanay Tandon
 

Mais procurados (20)

Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
multiple regression
multiple regressionmultiple regression
multiple regression
 
Correlation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft ExcelCorrelation and Regression Analysis using SPSS and Microsoft Excel
Correlation and Regression Analysis using SPSS and Microsoft Excel
 
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
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Correlation and Regression
Correlation and Regression Correlation and Regression
Correlation and Regression
 
Regression & It's Types
Regression & It's TypesRegression & It's Types
Regression & It's Types
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Regression ppt
Regression pptRegression ppt
Regression ppt
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Variability
VariabilityVariability
Variability
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 

Semelhante a 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.docx
evonnehoggarth79783
 
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
rochellscroop
 
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
mccormicknadine86
 
Principal components
Principal componentsPrincipal components
Principal components
Hutami Endang
 
Multinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdfMultinomial Logistic Regression.pdf
Multinomial Logistic Regression.pdf
AlemAyahu
 
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
curwenmichaela
 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
mousaderhem1
 

Semelhante a 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
 

Mais de Dhritiman Chakrabarti

Caeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosisCaeserean section complicated by mitral stenosis
Caeserean section complicated by mitral stenosis
Dhritiman Chakrabarti
 
Bronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubesBronchial blockers & endobronchial tubes
Bronchial blockers & endobronchial tubes
Dhritiman 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 ,truview
Dhritiman Chakrabarti
 

Mais de 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
 

Último

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
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
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
amitlee9823
 
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
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
MarinCaroMartnezBerg
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 

Último (20)

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra 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 ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
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
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
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...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
Call Girls in Sarai Kale Khan Delhi 💯 Call Us 🔝9205541914 🔝( Delhi) Escorts S...
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
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
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 

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