SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Logistic regression
Dr. Khaled Mahmoud Abd Elaziz
Lecturer of public health and preventive
medicine, Faculty of Medicine-
Ain Shams University
Logistic regression is very similar to linear
regression.
When we use logistic regression?
We use it when we have a (binary outcome) of
interest and a number of explanatory
variables.
Outcome:
e.g. the presence of absence of a
symptom, presence or absence of a disease
Logistic regression is very similar to linear
regression.
When we use logistic regression?
We use it when we have a (binary outcome) of
interest and a number of explanatory
variables.
Outcome:
e.g. the presence of absence of a
symptom, presence or absence of a disease
From the equation of the logistic
regression model we can do:
1-we can determine which explanatory
variables can influence the outcome.
Which means which variables had the
highest OR or the risk in production of
the outcome
(1= has the disease 0= doesn’t have the
disease)
From the equation of the logistic
regression model we can do:
2- we can use an individual
values of the explanatory
variables to evaluate he or she
will have a particular outcome
we start the logistic regression model by
creating a binary variable to represent
the outcome (Dependant variable) (1=
has the disease 0=doesn’t have the
disease)
We take the probability P of an individual
has the highest coded category (has
the disease) as the dependant variable.
We use the logit logistic transformation in
the regression equation
The logit is the natural logarithm of the odds ratio of
‘disease’
Logit (P)= ln P/ 1-p
The logistic regression equation
Logit (p)= a + b1X1+ b2X2 + b3X3 +……… + biXi
X= Explanatory variables
P= estimated value of true probability that an
individual with a particular set of values for X has
the disease. P corresponds to the proportion with
the disease, it has underlying binominal
distribution
b= estimated logistic regression coefficients
The exponential of a particular coefficient for
example eb1 is an estimated of the odds ratio.
For a particular value of X1 the estimated
odds of the disease while adjusting for all
other X’s in the equation.
As the logistic regression is fitted on a log
scale the effects of X’s are multiplicative on
the odds of the disease . This means that
their combined effect is the product of their
separate effects.
This is unlike linear regression where the
effects of X’s on the dependant variables
are additive.
Plain English:
1-Take the significant variables in the
univariate analysis
2-Set the P value that you will take those
variables to be put in the models e.g. 0.05 or
0.1
3-if all variables in the univariate analysis are
insignificant ? Don’t bother doing logisitic
regression. There is no question here about
those variables for prediction of the disease
Plain English:
4- the idea of doing a logisitic regression we have
two many variables that are significant with the
outcome we are looking for and we want to know
which is more stronger in prediction of the disease
outcome
5- we look in the output of the statistical program for
Odds ratio and CI, significance of the variable,
manipulate to select of the best combination of
explanatory variables
Plain English:
4- the idea of doing a logisitic regression we have
two many variables that are significant with the
outcome we are looking for and we want to know
which is more stronger in prediction of the disease
outcome
Mathematical model that describes the relationship
between an outcome with one or more explanatory
variables
5- we look in the output of the statistical program for
Odds ratio and CI, significance of the
variable, manipulate to select of the best
combination of explanatory variables
Example:
A study was done to test the relationship
between HHV8 infection and sexual
behavior of men, were asked about histories
of sexually transmitted diseases in the past (
gonorrhea, syphilis, HSV2, and HIV)
The explanatory variables were the presence
of each of the four infection coded as 0 if the
patient has no history or 1 if the patient had
a history of that infection and the patient age
in years
Dependant outcome HHV8 infection
Parameter
estimate
P OR 95% CI
Intercept -2.2242 0.006
Gonorrhea 0.5093 0.243 1.664 0.71-3.91
Syphilis 1.1924 0.093 3.295 0.82-13.8
HSV2 0.7910 0.0410 2.206 1.03-4.71
HIV 1.6357 0.0067 5.133 1.57-
16.73
Age 0.0062 0.76 1.006 0.97-1.05
Example:
Chi square for covariate= 24.5 P=0.002
Indicating at least one of the covariates
is significantly associated with HHV-8
serostatus.
HSV-2 positively associated with HHV8
infection P=0.04
HIV is positively associated with HHV 8
infection P=0.007
Those with a history of HSV-2 having 2.21
times odds of being HHV-8 positive
compared to those with negative history
after adjusting for other infections
Those with a history of HIV having 5.1 times
odds of being HHV-8 positive compared to
those with negative history after adjusting
for other infections
Multiplicative effect of the model suggests a
man who is both HSV2 and HIV seropositive
is estimated to have 2.206 X 5.133 = 11.3
times the odds of HHV 8 infection compared
to a man negative for both after adjusting for
the other two infections.
In this example gonorrhea had a significant
chi-square but when entered in the model it
was not significant
(no indication of independent relationship
between a history of gonorrhea and HHV8
seropositivity)
There is no significant relationship
between HHV8 seropositivity and
age, the odds ratio indicates that the
estimated odds of HHV8 seropositivity
increases by 0.6% for each additional
year of age.
What is the probability of 51 year old man has
HHV8 infection if he has gonorrhea positive
and HSV2 positive but doesn’t have the two
other diseases (Syphilis and HIV)?
Add up the regression coefficients
Constant +b1 +b2 +b3X age
-2.2242 + 0.5093+0.7910+ (0.0062X51)=
-0.6077
probability of this person=
P= ez / 1+ ez
P= e (-0.6077)/ 1+ e (-0.6077) =0.35
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

Logistic regression
Logistic regressionLogistic regression
Logistic regressionVARUN KUMAR
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examplesGaurav Kamboj
 
Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)MikeBlyth
 
Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppthabtamu biazin
 
Basics of Regression analysis
 Basics of Regression analysis Basics of Regression analysis
Basics of Regression analysisMahak Vijayvargiya
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsDerek Kane
 
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
 
Regression analysis
Regression analysisRegression analysis
Regression analysisRavi shankar
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spssDr Nisha Arora
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Modelsrichardchandler
 
Regression analysis
Regression analysisRegression analysis
Regression analysisSohag Babu
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in RAlichy Sowmya
 

Was ist angesagt? (20)

Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic regression with SPSS examples
Logistic regression with SPSS examplesLogistic regression with SPSS examples
Logistic regression with SPSS examples
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)
 
Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppt
 
Ridge regression
Ridge regressionRidge regression
Ridge regression
 
Basics of Regression analysis
 Basics of Regression analysis Basics of Regression analysis
Basics of Regression analysis
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
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
 
Logistic regression
  Logistic regression  Logistic regression
Logistic regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
 
Multiple Linear Regression
Multiple Linear Regression Multiple Linear Regression
Multiple Linear Regression
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Models
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 
Linear regression
Linear regression Linear regression
Linear regression
 

Ähnlich wie Logistic regression

Frequency Measures Used in EpidemiologyIntroductionIn e.docx
 Frequency Measures Used in EpidemiologyIntroductionIn e.docx Frequency Measures Used in EpidemiologyIntroductionIn e.docx
Frequency Measures Used in EpidemiologyIntroductionIn e.docxMARRY7
 
Association and causation
Association and causationAssociation and causation
Association and causationdrravimr
 
You have just finished a health education in-service to the communit.docx
You have just finished a health education in-service to the communit.docxYou have just finished a health education in-service to the communit.docx
You have just finished a health education in-service to the communit.docxbriancrawford30935
 
Statistics tests and Probablity
Statistics tests and ProbablityStatistics tests and Probablity
Statistics tests and ProbablityAbdul Wasay Baloch
 
10-Interpretation& Causality by Mehdi Ehtesham
10-Interpretation& Causality  by Mehdi Ehtesham10-Interpretation& Causality  by Mehdi Ehtesham
10-Interpretation& Causality by Mehdi EhteshamResearchGuru
 
A statistical model for undecidable viral detection
A statistical model for undecidable viral detectionA statistical model for undecidable viral detection
A statistical model for undecidable viral detectionUltraUploader
 
measures of association.pptx
measures of association.pptxmeasures of association.pptx
measures of association.pptxAyon Gupta
 
Let X  = (X1,...,Xn) be the blood pressure (measured in .docx
Let X  = (X1,...,Xn) be the blood pressure (measured in .docxLet X  = (X1,...,Xn) be the blood pressure (measured in .docx
Let X  = (X1,...,Xn) be the blood pressure (measured in .docxwashingtonrosy
 
Association & causation m
Association & causation mAssociation & causation m
Association & causation mManjesh Goswami
 
Descriptive epidemiology
Descriptive epidemiologyDescriptive epidemiology
Descriptive epidemiologyDalia El-Shafei
 
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...Crescent University Abeokuta
 
Lecture of epidemiology
Lecture of epidemiologyLecture of epidemiology
Lecture of epidemiologyAmany El-seoud
 
Analytic StudiesThere are basically two types of studies experi.docx
Analytic StudiesThere are basically two types of studies experi.docxAnalytic StudiesThere are basically two types of studies experi.docx
Analytic StudiesThere are basically two types of studies experi.docxrossskuddershamus
 
Inferential Statistics - DAY 4 - B.Ed - AIOU
Inferential Statistics - DAY 4 - B.Ed - AIOUInferential Statistics - DAY 4 - B.Ed - AIOU
Inferential Statistics - DAY 4 - B.Ed - AIOUEqraBaig
 
3335wGA RSV Prediction
3335wGA RSV Prediction3335wGA RSV Prediction
3335wGA RSV PredictionTimothy Decker
 

Ähnlich wie Logistic regression (20)

Frequency Measures Used in EpidemiologyIntroductionIn e.docx
 Frequency Measures Used in EpidemiologyIntroductionIn e.docx Frequency Measures Used in EpidemiologyIntroductionIn e.docx
Frequency Measures Used in EpidemiologyIntroductionIn e.docx
 
Association and causation
Association and causationAssociation and causation
Association and causation
 
You have just finished a health education in-service to the communit.docx
You have just finished a health education in-service to the communit.docxYou have just finished a health education in-service to the communit.docx
You have just finished a health education in-service to the communit.docx
 
Statistics tests and Probablity
Statistics tests and ProbablityStatistics tests and Probablity
Statistics tests and Probablity
 
Russo Madrid Medicine Oct07
Russo Madrid Medicine Oct07Russo Madrid Medicine Oct07
Russo Madrid Medicine Oct07
 
10-Interpretation& Causality by Mehdi Ehtesham
10-Interpretation& Causality  by Mehdi Ehtesham10-Interpretation& Causality  by Mehdi Ehtesham
10-Interpretation& Causality by Mehdi Ehtesham
 
A statistical model for undecidable viral detection
A statistical model for undecidable viral detectionA statistical model for undecidable viral detection
A statistical model for undecidable viral detection
 
measures of association.pptx
measures of association.pptxmeasures of association.pptx
measures of association.pptx
 
Let X  = (X1,...,Xn) be the blood pressure (measured in .docx
Let X  = (X1,...,Xn) be the blood pressure (measured in .docxLet X  = (X1,...,Xn) be the blood pressure (measured in .docx
Let X  = (X1,...,Xn) be the blood pressure (measured in .docx
 
Association & causation m
Association & causation mAssociation & causation m
Association & causation m
 
Descriptive epidemiology
Descriptive epidemiologyDescriptive epidemiology
Descriptive epidemiology
 
epid2-1
epid2-1epid2-1
epid2-1
 
J023089094
J023089094J023089094
J023089094
 
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...
On a Sequential Probit Model of Infant Mortality in Nigeria, by K.T. Amzat an...
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Lecture of epidemiology
Lecture of epidemiologyLecture of epidemiology
Lecture of epidemiology
 
Epidemiology Depuk sir_ 1,2,3 chapter,OK
Epidemiology Depuk sir_ 1,2,3 chapter,OKEpidemiology Depuk sir_ 1,2,3 chapter,OK
Epidemiology Depuk sir_ 1,2,3 chapter,OK
 
Analytic StudiesThere are basically two types of studies experi.docx
Analytic StudiesThere are basically two types of studies experi.docxAnalytic StudiesThere are basically two types of studies experi.docx
Analytic StudiesThere are basically two types of studies experi.docx
 
Inferential Statistics - DAY 4 - B.Ed - AIOU
Inferential Statistics - DAY 4 - B.Ed - AIOUInferential Statistics - DAY 4 - B.Ed - AIOU
Inferential Statistics - DAY 4 - B.Ed - AIOU
 
3335wGA RSV Prediction
3335wGA RSV Prediction3335wGA RSV Prediction
3335wGA RSV Prediction
 

Mehr von Khaled Abd Elaziz

Mehr von Khaled Abd Elaziz (18)

Challenges to geriatric care khaled
Challenges to geriatric care khaled Challenges to geriatric care khaled
Challenges to geriatric care khaled
 
MDA can it be stopped
MDA can it be stopped MDA can it be stopped
MDA can it be stopped
 
Trachoma
Trachoma Trachoma
Trachoma
 
Yaws
YawsYaws
Yaws
 
Obesity epidemic and carbohydrates
Obesity epidemic and carbohydrates Obesity epidemic and carbohydrates
Obesity epidemic and carbohydrates
 
Olive oil
Olive oilOlive oil
Olive oil
 
Filaria 2018 modified
Filaria 2018 modifiedFilaria 2018 modified
Filaria 2018 modified
 
Smoking behavioral counseling1
Smoking behavioral counseling1Smoking behavioral counseling1
Smoking behavioral counseling1
 
Zika
ZikaZika
Zika
 
Lymphatic Filariasis in Eastern Mediternean Region
Lymphatic Filariasis in Eastern Mediternean RegionLymphatic Filariasis in Eastern Mediternean Region
Lymphatic Filariasis in Eastern Mediternean Region
 
Effectiveness of four years mass drug administration in elimination of lympha...
Effectiveness of four years mass drug administration in elimination of lympha...Effectiveness of four years mass drug administration in elimination of lympha...
Effectiveness of four years mass drug administration in elimination of lympha...
 
Ebola virus epidemic in west Africa
Ebola virus epidemic in west AfricaEbola virus epidemic in west Africa
Ebola virus epidemic in west Africa
 
Topics in Probabillity
Topics in ProbabillityTopics in Probabillity
Topics in Probabillity
 
Traveler's health
Traveler's healthTraveler's health
Traveler's health
 
Passive smoking and children
Passive smoking and childrenPassive smoking and children
Passive smoking and children
 
Reseach on domestic violence in egypt
Reseach on domestic violence in egyptReseach on domestic violence in egypt
Reseach on domestic violence in egypt
 
School violence
School violenceSchool violence
School violence
 
Hepatitis c in arab world and na khaled
Hepatitis c in arab world and na khaledHepatitis c in arab world and na khaled
Hepatitis c in arab world and na khaled
 

Kürzlich hochgeladen

꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
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.pdfMarinCaroMartnezBerg
 
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.pptxolyaivanovalion
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
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
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlkumarajju5765
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
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...Delhi 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
 
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
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
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
 
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
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
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
 
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.pptxolyaivanovalion
 
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
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 

Kürzlich hochgeladen (20)

꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
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
 
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
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
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
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
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...
 
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
 
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
 
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
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
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...
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
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
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
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 ...
 
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
 
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
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 

Logistic regression

  • 1. Logistic regression Dr. Khaled Mahmoud Abd Elaziz Lecturer of public health and preventive medicine, Faculty of Medicine- Ain Shams University
  • 2. Logistic regression is very similar to linear regression. When we use logistic regression? We use it when we have a (binary outcome) of interest and a number of explanatory variables. Outcome: e.g. the presence of absence of a symptom, presence or absence of a disease
  • 3. Logistic regression is very similar to linear regression. When we use logistic regression? We use it when we have a (binary outcome) of interest and a number of explanatory variables. Outcome: e.g. the presence of absence of a symptom, presence or absence of a disease
  • 4. From the equation of the logistic regression model we can do: 1-we can determine which explanatory variables can influence the outcome. Which means which variables had the highest OR or the risk in production of the outcome (1= has the disease 0= doesn’t have the disease)
  • 5. From the equation of the logistic regression model we can do: 2- we can use an individual values of the explanatory variables to evaluate he or she will have a particular outcome
  • 6. we start the logistic regression model by creating a binary variable to represent the outcome (Dependant variable) (1= has the disease 0=doesn’t have the disease) We take the probability P of an individual has the highest coded category (has the disease) as the dependant variable. We use the logit logistic transformation in the regression equation
  • 7. The logit is the natural logarithm of the odds ratio of ‘disease’ Logit (P)= ln P/ 1-p The logistic regression equation Logit (p)= a + b1X1+ b2X2 + b3X3 +……… + biXi X= Explanatory variables P= estimated value of true probability that an individual with a particular set of values for X has the disease. P corresponds to the proportion with the disease, it has underlying binominal distribution b= estimated logistic regression coefficients The exponential of a particular coefficient for example eb1 is an estimated of the odds ratio.
  • 8. For a particular value of X1 the estimated odds of the disease while adjusting for all other X’s in the equation. As the logistic regression is fitted on a log scale the effects of X’s are multiplicative on the odds of the disease . This means that their combined effect is the product of their separate effects. This is unlike linear regression where the effects of X’s on the dependant variables are additive.
  • 9. Plain English: 1-Take the significant variables in the univariate analysis 2-Set the P value that you will take those variables to be put in the models e.g. 0.05 or 0.1 3-if all variables in the univariate analysis are insignificant ? Don’t bother doing logisitic regression. There is no question here about those variables for prediction of the disease
  • 10. Plain English: 4- the idea of doing a logisitic regression we have two many variables that are significant with the outcome we are looking for and we want to know which is more stronger in prediction of the disease outcome 5- we look in the output of the statistical program for Odds ratio and CI, significance of the variable, manipulate to select of the best combination of explanatory variables
  • 11. Plain English: 4- the idea of doing a logisitic regression we have two many variables that are significant with the outcome we are looking for and we want to know which is more stronger in prediction of the disease outcome Mathematical model that describes the relationship between an outcome with one or more explanatory variables 5- we look in the output of the statistical program for Odds ratio and CI, significance of the variable, manipulate to select of the best combination of explanatory variables
  • 12. Example: A study was done to test the relationship between HHV8 infection and sexual behavior of men, were asked about histories of sexually transmitted diseases in the past ( gonorrhea, syphilis, HSV2, and HIV) The explanatory variables were the presence of each of the four infection coded as 0 if the patient has no history or 1 if the patient had a history of that infection and the patient age in years
  • 13. Dependant outcome HHV8 infection Parameter estimate P OR 95% CI Intercept -2.2242 0.006 Gonorrhea 0.5093 0.243 1.664 0.71-3.91 Syphilis 1.1924 0.093 3.295 0.82-13.8 HSV2 0.7910 0.0410 2.206 1.03-4.71 HIV 1.6357 0.0067 5.133 1.57- 16.73 Age 0.0062 0.76 1.006 0.97-1.05
  • 14. Example: Chi square for covariate= 24.5 P=0.002 Indicating at least one of the covariates is significantly associated with HHV-8 serostatus. HSV-2 positively associated with HHV8 infection P=0.04 HIV is positively associated with HHV 8 infection P=0.007
  • 15. Those with a history of HSV-2 having 2.21 times odds of being HHV-8 positive compared to those with negative history after adjusting for other infections Those with a history of HIV having 5.1 times odds of being HHV-8 positive compared to those with negative history after adjusting for other infections
  • 16. Multiplicative effect of the model suggests a man who is both HSV2 and HIV seropositive is estimated to have 2.206 X 5.133 = 11.3 times the odds of HHV 8 infection compared to a man negative for both after adjusting for the other two infections. In this example gonorrhea had a significant chi-square but when entered in the model it was not significant (no indication of independent relationship between a history of gonorrhea and HHV8 seropositivity)
  • 17. There is no significant relationship between HHV8 seropositivity and age, the odds ratio indicates that the estimated odds of HHV8 seropositivity increases by 0.6% for each additional year of age.
  • 18. What is the probability of 51 year old man has HHV8 infection if he has gonorrhea positive and HSV2 positive but doesn’t have the two other diseases (Syphilis and HIV)? Add up the regression coefficients Constant +b1 +b2 +b3X age -2.2242 + 0.5093+0.7910+ (0.0062X51)= -0.6077
  • 19. probability of this person= P= ez / 1+ ez P= e (-0.6077)/ 1+ e (-0.6077) =0.35