SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Cannonical correlation
Cannonical correlationCannonical correlation
Cannonical correlation
domsr
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
Carlo Magno
 

Tendances (20)

What is Binary Logistic Regression Classification and How is it Used in Analy...
What is Binary Logistic Regression Classification and How is it Used in Analy...What is Binary Logistic Regression Classification and How is it Used in Analy...
What is Binary Logistic Regression Classification and How is it Used in Analy...
 
Multinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationshipsMultinomial logisticregression basicrelationships
Multinomial logisticregression basicrelationships
 
Ordinal Logistic Regression
Ordinal Logistic RegressionOrdinal Logistic Regression
Ordinal Logistic Regression
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regression
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression
 
Multiple Regression and Logistic Regression
Multiple Regression and Logistic RegressionMultiple Regression and Logistic Regression
Multiple Regression and Logistic Regression
 
Logistic regression
  Logistic regression  Logistic regression
Logistic regression
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Regression
Regression Regression
Regression
 
Ml3 logistic regression-and_classification_error_metrics
Ml3 logistic regression-and_classification_error_metricsMl3 logistic regression-and_classification_error_metrics
Ml3 logistic regression-and_classification_error_metrics
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Cannonical correlation
Cannonical correlationCannonical correlation
Cannonical correlation
 
Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)Logistic regression (blyth 2006) (simplified)
Logistic regression (blyth 2006) (simplified)
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Logistic Regression.ppt
Logistic Regression.pptLogistic Regression.ppt
Logistic Regression.ppt
 
Categorical data analysis
Categorical data analysisCategorical data analysis
Categorical data analysis
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 

Similaire à 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.docx
MARRY7
 
Association and causation
Association and causationAssociation and causation
Association and causation
drravimr
 
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
briancrawford30935
 
Statistics tests and Probablity
Statistics tests and ProbablityStatistics tests and Probablity
Statistics tests and Probablity
Abdul Wasay Baloch
 
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
UltraUploader
 
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
washingtonrosy
 
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
rossskuddershamus
 
3335wGA RSV Prediction
3335wGA RSV Prediction3335wGA RSV Prediction
3335wGA RSV Prediction
Timothy Decker
 

Similaire à 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
 

Plus de Khaled Abd Elaziz

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
Khaled Abd Elaziz
 

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

Dernier

怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
vexqp
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
cnajjemba
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
nirzagarg
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
wsppdmt
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
wsppdmt
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 

Dernier (20)

怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
怎样办理伦敦大学毕业证(UoL毕业证书)成绩单学校原版复制
 
PLE-statistics document for primary schs
PLE-statistics document for primary schsPLE-statistics document for primary schs
PLE-statistics document for primary schs
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
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...
 
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit RiyadhCytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
Cytotec in Jeddah+966572737505) get unwanted pregnancy kit Riyadh
 
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptxThe-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
The-boAt-Story-Navigating-the-Waves-of-Innovation.pptx
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
一比一原版(UCD毕业证书)加州大学戴维斯分校毕业证成绩单原件一模一样
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 

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