Professional Documents
Culture Documents
HFHFH
HFHFH
Lecture 16
Logistic Regression
Masashi Kizuki
Health Promotion/ International Health
Tokyo Medical and Dental University
Today’s Topics
Let
Y: cure by 14 days (1=yes, 0=no)
X: antibiotic (1=cefaclor, 2=amoxicillin)
Link Function
1
Probability of event
logistic function
p
0
Level of exposure x
Transformation From Logistic Function to Logit
Then
Mathematically
equivalent
logit
Calculation of Logit
p logit(p)
0 loge(0/1) = loge(0) =
0.2 loge(0.2/0.8) = loge(0.25) = -1.39
0.5 loge(0.5/0.5) = loge(1) = 0
0.8 loge(0.8/0.2) = loge(4) = 1.39
1 loge(1/0) = loge() =
loge() ranges from (p=0) to (p=1).
Logistic Model
In our example,
Hypotheses are
H0: -2 log L1 = -2 log L2
H1: -2 log L1 > -2 log L2
Test statistic is
LR = (-2 log L1) - (-2 log L2)
= 378.127 - 354.078 = 24.05 ~ Χ2df
Because 24.05 > Χ2df, 0.95=5.99, we reject H0
Test statistic is
LR = (-2 log L1) - (-2 log L2)
= 378.127 - 375.706 = 2.42 ~ Χ1df
Because 2.42 > Χ1df, 0.95=3.84, we accept H0
14*21/17/6 17*6/58
=2.88 =1.76
39*25/13/20 13*20/97
=3.75 =2.68
15*8/8/17 8*17/48
=0.88 =2.83
8*13/10/2 10*2/33
=5.20 =0.61
10*4/12/5 12*5/31
=0.67 =1.94
3*1/1/6 1*6/11
=0.50 =0.55
¿ pool =
∑ ( wi × ¿^ i )
=2.16 cf. ORadj=2.11 in
∑ wi logistic regression
Logistic Regression & Contingency Table Analysis
Logistic regression Contingency table
analysis analysis
Transparency Black box Clear
of procedure Easy to check details
Adjustment for Easy Difficult or inefficient
confounders Add variables in the Number of tables
model becomes too many
Continuous OK Not OK
independent Use as continuous Variables should be
variables variables directly categorized
Observed and
expected
frequencies are
close.
• Interaction
• Variable selection