REGRESSION
Dikhotom (Binar)
Contoh: mati vs hidup
sakit vs tdk sakit
Logistic regression
Models relationship between set of variables xi
dichotomous (yes/no)
categorical (social class, ... )
continuous (age, ...)
and
dichotomous (binary) variable Y
Linear regression?
Dot-plot: Data from Table 2
Logistic regression (2)
Table 3 Prevalence (%) of signs of CD according
to age group
Dot-plot: Data from Table 3
100
Diseased %
80
60
40
20
0
0 2 4 6 8
Age group
Logistic function (1)
Probability
of disease 1.0
0.8
0.6
0.4
0.2
0.0
x
MODEL LOGISTIK
Probabilitas terjadinya suatu penyakit
1
P(X) = 1 + e-(+iXi)
{logit of P(y|x)
Transformasi Logit
Logit P(X) = ln e [ P(X) / 1-P(X)]
Logit P(X) = +i Xi
P
e αβx
1- P
Interpretation of coefficient
= increase in logarithm of odds ratio
for a one unit increase in x
Test of the hypothesis that =0 (Wald
test) 2
β 2
(1 df)
Variance ( β)
Interval testing
Example
Risk of developing coronary heart disease
(CD)
by age (<55 and 55+ years)
Logistic Regression Model
P
ln α β1 Age - 0.841 2.094 Age
1 - P
Multiple logistic regression
More than one independent variable
Dichotomous, ordinal, nominal, continuous …
P
ln α β1x1 β2 x 2 ... βi xi
1- P
Interpretation of i
Increase in log-odds for a one unit increase in xi with all
the other xis constant
Measures association between x and log-odds adjusted
i
for all other xi
Effect modification
Effect modification
Can be modelled by including interaction
terms
P
ln α β1x1 β2 x 2 β3 x1 x 2
1- P
Likelihood ratio statistic
Compares two nested models
Log(odds) = + 1x1 + 2x2 + 3x3 + 4x4 (model 1)
Log(odds) = + 1x1 + 2x2 (model 2)
LR statistic
-2 log (likelihood model 2 / likelihood model 1) =
-2 log (likelihood model 2) minus -2log (likelihood model 1)
P
ln α β1 Exc β2 Smk β3 Smk Exc
1term
Product - P 3 = -0.4604 (SE 0.5332)
1
p( y 1 | x)
1 e ( 1,9051,543ESTR 1, 247 HOLMES )
Example
If a woman with low estrogen level
(ESTR=1) and low psychosocial stress
(HOLMES=0)
1
p( y 1 | x)
1 e ( 1,9051,543*11, 247*0 )
p ( y 1 | x) 0,59
ODDS RATIO
Case X
Control
Cross X
Sectional
Alasan melakukan analisis
regresi logistik
1. Bila menggunakan analisis stratifikasi, makin banyak
strata dibuat makin sedikit frekuensi yang terisi
didalam sel suatu tabel bahkan mungkin menjadi nol
2. Untuk melakukan kontrol pada variabel lain yang tidak
di “match”
3. Untuk prediksi individu
4. Bila variabel pemaparan lebih dari satu
5. Bila ada variabel kontrol yang tidak diskret
6. Bila mempunyai dan atau menguasai peranti lunak
komputer untuk melakukan analisis ini