Class 7
Class 7
Class 7
mellitus
Hypertension and LDL level
Logistic Regression
In logistic regression:
Outcome variable is binary
Purpose of the analysis is to assess the
effects of multiple explanatory variables,
which can be numeric and/or categorical, on
the outcome variable.
Requirements for Logistic Regression
) e u
Yi =
1+ e u
u = A + B1 X 1 + B2 X 2 + L + BK X K
Logistic function
1.0
0.8
Probability
of disease
The coefficients β1, β2, βp are such that the sums of the
squared distance between the observed and predicted
values (i.e. regression line) are smallest.
The Logistic Regression
S(t) = P[ T ≥ t ] = 1 – P[ T < t ]
Plot: Y axis = % alive, X axis = time
Proportion of population still without the
event by time t
Survival Curve
1.0
0.2 0.4 0.6 0.8 Survival Curve
Proportion Alive
0.0
0 1 2 3 4 5 6 7 8 9
Months since surgery
Hazard Function
0
1.0 0.9 0.8 0.7 0.6
105
Survival Time
Kaplan-Meier Curve
15
20
Kaplan Meier Curve
Limit of Kaplan-Meier curves
Cumulative Proportion N of N of
Surviving at the Time Cumulative Remaining
Time Status Estimate Std. Error Events Cases
1 6.000 1 .800 .179 1 4
2 14.000 1 .600 .219 2 3
3 21.000 0 . . 2 2
4 44.000 1 .300 .239 3 1
5 62.000 1 .000 .000 4 0
-2 Log Overall (score) Change From Previous Step Change From Previous Block
Likelihood Chi-square df Sig. Chi-square df Sig. Chi-square df Sig.
6.732 .468 1 .494 .646 1 .422 .646 1 .422
a. Beginning Block Number 0, initial Log Likelihood function: -2 Log likelihood: 7.378
b. Beginning Block Number 1. Method = Enter