Logistic Regression
Logistic Regression
• Star next to p-value in the summary (see console) shows that lwt is
significant variable in predicting “low” variable.
Contd…
• 5. Let’s consider a random person with age =25 and lwt=55.Now let’s
find the logit score for this person
b0 + b1*x1 + b2*x2= 1.748773-0.039788*25-0.012775*55
=0.05144(approx).
• 6. So logit score for this observation=0.05144
• Hosmer, David W.; Lemeshow, Stanley (2013). Applied Logistic
Regression. New York: Wiley. ISBN 978-0-470-58247-3.
Odds ratio calculation
• 7. Now let’s find the probability that birthwt <2.5 kg(i.e low=1).See
the help page on birthwt data set (Check it : type ?birthwt in the R
console)
• 0.513 or 51.3% is the probability of birth weight less than 2.5 kg when
the mother age =25 and mother’s weight(in pounds)=55
Source : Hosmer, D.W. and Lemeshow, S. (1989) Applied Logistic Regression. New York: Wiley