REGRESI LOGISTIK
BESRAL
Departemen Biostatistik FKM-UI
REGRESI LOGISTIK
Regresi Logistik:
Model matematis untuk menganalisis hubungan
antara satu atau beberapa variabel independent
yang bersifat binary atau dikotom maupun
kontinu dengan satu variabel dependent yang
bersifat binary (sehat/sakit, hidup/mati)
Regresi Logistik:
- Sederhana hanya satu variabel independen
- Ganda/multiple lebih dari satu variabel
independen
2
REGRESI LOGISTIK
Persamaan Regresi
Logistik:
Logit (Y ) = a + b1 x1 + .... + bk xk
1
1
P(Y ) =
=
(logitY )
( a+b1 x1 +.....+bk xk )
1+ Exp
1+ Exp
OR = Exp
(b )
= Exponensial
P = Probabilitas
(b )
=e
(b )
OR = Odds Ratio
3
REGRESI LOGISTIK
1. Sex (0=P/1=L)
2. Umur (0=<40/1=40+)
3. Rokok
(1=Y,2=K, 3=P, 4=T)
Hipertensi
(0=T/1=Y)
4. Desa=0/Kota=1
5. Status gizi
(0= IMT<22.5/1=IMT 22.5+)
4
REGRESI LOGISTIK
Statistics-->Binary outcomes-->Logistic reg (Reported OR)
Dependen-->hiper_s
Independen:
-->sex
-->um_x
-->rokok
-->kd_kota
-->imt_x
Number of obs
=
4635
LR chi2(1)
=
3.70
Prob > chi2
=
0.0545
Log likelihood = -2550.7926
Pseudo R2
=
0.0007
-----------------------------------------------------------------------------hiper_s | Odds Ratio
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------sex |
.8760421
.0603296
-1.92
0.055
.7654311
1.002637
------------------------------------------------------------------------------
Number of obs
=
4635
LR chi2(1)
=
220.79
Prob > chi2
=
0.0000
Log likelihood = -2442.2464
Pseudo R2
=
0.0432
-----------------------------------------------------------------------------hiper_s | Odds Ratio
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------um_x |
2.826001
.2014662
14.57
0.000
2.45748
3.249785
-----------------------------------------------------------------------------
Number of obs
=
4635
LR chi2(1)
=
84.58
Prob > chi2
=
0.0000
Log likelihood = -2510.3515
Pseudo R2
=
0.0166
-----------------------------------------------------------------------------hiper_s | Odds Ratio
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------imt_x |
1.889432
.1314754
9.14
0.000
1.648545
2.165518
------------------------------------------------------------------------------
Kelompok IMT diatas 22,5 punya kecenderungan 1,88 kali lebih besar
untuk hipertensi dibandingkan dengan IMT kurang atau sama dengan
22,5 (nilai-p=0,000)
Number of obs
=
4635
LR chi2(1)
=
8.34
Prob > chi2
=
0.0039
Log likelihood = -2548.4696
Pseudo R2
=
0.0016
-----------------------------------------------------------------------------hiper_s | Odds Ratio
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------kd_kota |
.8182428
.056991
-2.88
0.004
.7138312
.9379265
------------------------------------------------------------------------------
10
Sex
Umur
Rokok
IMT
Kota/Desa
Kandidat Model
Seleksi variabel
Ya
Keluar
Modelling:
1.Determinants
2.Risk Factors
kd_kota imt_x
Number of obs
=
4635
LR chi2(3)
=
321.47
Prob > chi2
=
0.0000
Log likelihood = -2391.907
Pseudo R2
=
0.0630
-----------------------------------------------------------------------------hiper_s | Odds Ratio
Std. Err.
z
P>|z|
[95% Conf. Interval]
-------------+---------------------------------------------------------------um_x |
2.841395
.2051403
14.46
0.000
2.466479
3.273301
kd_kota |
.758514
.0555725
-3.77
0.000
.657053
.8756424
imt_x |
2.023278
.1469938
9.70
0.000
1.754748
2.332902
------------------------------------------------------------------------------
1.Dependent-->hiper_s
2.Independent-->
sex um_x imt_x kota rokok
3.Option:
16
3.Option:
- Odds ratio(s)
4.OK
17
Variabel rokok memiliki salah satu kelompok yang bermakna (nilaip=0,021), sehingga rokok tetap ada dalam model
20