Analisis Stata

13
Analisis Bivariat . tab Obes Status, col | Status Obesitas | Kontrol Kasus | Total --------------+----------------------+---------- Risiko Rendah | 51 10 | 61 | 60.71 23.81 | 48.41 --------------+----------------------+---------- Risiko Tinggi | 33 32 | 65 | 39.29 76.19 | 51.59 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00 . cc Status Obes Proportion | Exposed Unexposed | Total Exposed -----------------+------------------------+------------------------ Cases | 32 10 | 42 0.7619 Controls | 33 51 | 84 0.3929 -----------------+------------------------+------------------------ Total | 65 61 | 126 0.5159 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 4.945455 | 2.015985 12.69708 (exact) Attr. frac. ex. | .7977941 | .5039646 .9212418 (exact) Attr. frac. pop | .6078431 | +------------------------------------------------- chi2(1) = 15.27 Pr>chi2 = 0.0001 . tab HT Status, col | Status Hipertensi | Kontrol Kasus | Total --------------+----------------------+---------- Risiko Rendah | 59 17 | 76 | 70.24 40.48 | 60.32 --------------+----------------------+---------- Risiko Tinggi | 25 25 | 50 | 29.76 59.52 | 39.68 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00 . cc Status HT Proportion | Exposed Unexposed | Total Exposed -----------------+------------------------+------------------------ Cases | 25 17 | 42 0.5952

Transcript of Analisis Stata

Page 1: Analisis Stata

Analisis Bivariat

. tab Obes Status, col

| Status Obesitas | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 51 10 | 61 | 60.71 23.81 | 48.41 --------------+----------------------+----------Risiko Tinggi | 33 32 | 65 | 39.29 76.19 | 51.59 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status Obes Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 32 10 | 42 0.7619 Controls | 33 51 | 84 0.3929-----------------+------------------------+------------------------ Total | 65 61 | 126 0.5159 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 4.945455 | 2.015985 12.69708 (exact) Attr. frac. ex. | .7977941 | .5039646 .9212418 (exact) Attr. frac. pop | .6078431 | +------------------------------------------------- chi2(1) = 15.27 Pr>chi2 = 0.0001

. tab HT Status, col

| Status Hipertensi | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 59 17 | 76 | 70.24 40.48 | 60.32 --------------+----------------------+----------Risiko Tinggi | 25 25 | 50 | 29.76 59.52 | 39.68 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status HT Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 25 17 | 42 0.5952 Controls | 25 59 | 84 0.2976-----------------+------------------------+------------------------ Total | 50 76 | 126 0.3968 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 3.470588 | 1.49469 8.104492 (exact) Attr. frac. ex. | .7118644 | .3309649 .8766116 (exact) Attr. frac. pop | .4237288 | +------------------------------------------------- chi2(1) = 10.36 Pr>chi2 = 0.0013

Page 2: Analisis Stata

. tab Col Status, col

| Status Kolesterol | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 56 10 | 66 | 66.67 23.81 | 52.38 --------------+----------------------+----------Risiko Tinggi | 28 32 | 60 | 33.33 76.19 | 47.62 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status Col Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 32 10 | 42 0.7619 Controls | 28 56 | 84 0.3333-----------------+------------------------+------------------------ Total | 60 66 | 126 0.4762 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 6.4 | 2.577577 16.54846 (exact) Attr. frac. ex. | .84375 | .6120388 .9395714 (exact) Attr. frac. pop | .6428571 | +------------------------------------------------- chi2(1) = 20.62 Pr>chi2 = 0.0000

. tab JK Status, col

| StatusJenis Kelamin | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 46 11 | 57 | 54.76 26.19 | 45.24 --------------+----------------------+----------Risiko Tinggi | 38 31 | 69 | 45.24 73.81 | 54.76 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status JK Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 31 11 | 42 0.7381 Controls | 38 46 | 84 0.4524-----------------+------------------------+------------------------ Total | 69 57 | 126 0.5476 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 3.411483 | 1.425537 8.491954 (exact) Attr. frac. ex. | .7068724 | .2985098 .8822415 (exact) Attr. frac. pop | .5217391 | +------------------------------------------------- chi2(1) = 9.23 Pr>chi2 = 0.0024

Page 3: Analisis Stata

. tab Rokok Status, col

| Status Merokok | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 79 38 | 117 | 94.05 90.48 | 92.86 --------------+----------------------+----------Risiko Tinggi | 5 4 | 9 | 5.95 9.52 | 7.14 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status Rokok Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 4 38 | 42 0.0952 Controls | 5 79 | 84 0.0595-----------------+------------------------+------------------------ Total | 9 117 | 126 0.0714 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 1.663158 | .310261 8.184494 (exact) Attr. frac. ex. | .3987342 | -2.223092 .8778177 (exact) Attr. frac. pop | .0379747 | +------------------------------------------------- chi2(1) = 0.54 Pr>chi2 = 0.4631

. tab Aktiv Status, col

Aktivitas | Status Fisik | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 20 6 | 26 | 23.81 14.29 | 20.63 --------------+----------------------+----------Risiko Tinggi | 64 36 | 100 | 76.19 85.71 | 79.37 --------------+----------------------+---------- Total | 84 42 | 126 | 100.00 100.00 | 100.00

. cc Status Aktiv Proportion | Exposed Unexposed | Total Exposed-----------------+------------------------+------------------------ Cases | 36 6 | 42 0.8571 Controls | 64 20 | 84 0.7619-----------------+------------------------+------------------------ Total | 100 26 | 126 0.7937 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Odds ratio | 1.875 | .6458385 6.208163 (exact) Attr. frac. ex. | .4666667 | -.5483747 .8389218 (exact) Attr. frac. pop | .4 | +------------------------------------------------- chi2(1) = 1.55 Pr>chi2 = 0.2130

Page 4: Analisis Stata

Analisis Multivariat

. logistic Status Obes HT Col JK Rokok Aktiv

Logistic regression Number of obs = 126 LR chi2(6) = 44.40 Prob > chi2 = 0.0000Log likelihood = -58.000863 Pseudo R2 = 0.2768

------------------------------------------------------------------------------ Status | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]-------------+---------------------------------------------------------------- Obes | 4.727592 2.643574 2.78 0.005 1.58003 14.14538 HT | 3.963665 1.893385 2.88 0.004 1.55414 10.10889 Col | 5.403225 2.609497 3.49 0.000 2.096832 13.92331 JK | 2.081343 1.095557 1.39 0.164 .7418169 5.839703 Rokok | 2.240689 2.184301 0.83 0.408 .3315895 15.14127 Aktiv | .4612598 .3163988 -1.13 0.259 .1202453 1.769388------------------------------------------------------------------------------

. logistic Status Obes HT Col

Logistic regression Number of obs = 126 LR chi2(3) = 40.76 Prob > chi2 = 0.0000Log likelihood = -59.818748 Pseudo R2 = 0.2541

------------------------------------------------------------------------------ Status | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]-------------+---------------------------------------------------------------- Obes | 4.359402 2.071335 3.10 0.002 1.717851 11.06289 HT | 3.76291 1.731867 2.88 0.004 1.526726 9.274417 Col | 5.646183 2.649622 3.69 0.000 2.25064 14.16459------------------------------------------------------------------------------

. logit Status Obes HT Col

Iteration 0: log likelihood = -80.200785 Iteration 1: log likelihood = -60.671367 Iteration 2: log likelihood = -59.821299 Iteration 3: log likelihood = -59.818748 Iteration 4: log likelihood = -59.818748

Logistic regression Number of obs = 126 LR chi2(3) = 40.76 Prob > chi2 = 0.0000Log likelihood = -59.818748 Pseudo R2 = 0.2541

------------------------------------------------------------------------------ Status | Coef. Std. Err. z P>|z| [95% Conf. Interval]-------------+---------------------------------------------------------------- Obes | 1.472335 .4751419 3.10 0.002 .5410739 2.403596 HT | 1.325193 .4602468 2.88 0.004 .4231254 2.22726 Col | 1.73098 .4692766 3.69 0.000 .8112144 2.650745 _cons | -3.106065 .5560808 -5.59 0.000 -4.195963 -2.016167------------------------------------------------------------------------------

. di -3.106065+1.472335*1+1.325193*1+1.73098*11.422443

. di 1/(1+exp(-1.422443))

.80572112

Page 5: Analisis Stata

Analisis Confounding

. bysort Col: tab Obes Status, row chi

-> Col = Risiko Rendah

+----------------+| Key ||----------------|| frequency || row percentage |+----------------+

| Status Obesitas | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 34 5 | 39 | 87.18 12.82 | 100.00 --------------+----------------------+----------Risiko Tinggi | 22 5 | 27 | 81.48 18.52 | 100.00 --------------+----------------------+---------- Total | 56 10 | 66 | 84.85 15.15 | 100.00

Pearson chi2(1) = 0.4029 Pr = 0.526

-> Col = Risiko Tinggi

| Status Obesitas | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 17 5 | 22 | 77.27 22.73 | 100.00 --------------+----------------------+----------Risiko Tinggi | 11 27 | 38 | 28.95 71.05 | 100.00 --------------+----------------------+---------- Total | 28 32 | 60 | 46.67 53.33 | 100.00

Pearson chi2(1) = 13.0737 Pr = 0.000

. cc Status Obes, by(Col)

Kolesterol | OR [95% Conf. Interval] M-H Weight-----------------+------------------------------------------------- Risiko Rendah | 1.545455 .3135019 7.534412 1.666667 (exact) Risiko Tinggi | 8.345455 2.169084 35.13454 .9166667 (exact)-----------------+------------------------------------------------- Crude | 4.945455 2.015985 12.69708 (exact) M-H combined | 3.958358 1.671704 9.372829 -------------------------------------------------------------------Test of homogeneity (M-H) chi2(1) = 3.30 Pr>chi2 = 0.0692

Test that combined OR = 1: Mantel-Haenszel chi2(1) = 10.41 Pr>chi2 = 0.0013

Page 6: Analisis Stata

. bysort Col: tab HT Status, row chi

-> Col = Risiko Rendah

| Status Hipertensi | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 41 2 | 43 | 95.35 4.65 | 100.00 --------------+----------------------+----------Risiko Tinggi | 15 8 | 23 | 65.22 34.78 | 100.00 --------------+----------------------+---------- Total | 56 10 | 66 | 84.85 15.15 | 100.00

Pearson chi2(1) = 10.5826 Pr = 0.001

-> Col = Risiko Tinggi

| Status Hipertensi | Kontrol Kasus | Total--------------+----------------------+----------Risiko Rendah | 18 15 | 33 | 54.55 45.45 | 100.00 --------------+----------------------+----------Risiko Tinggi | 10 17 | 27 | 37.04 62.96 | 100.00 --------------+----------------------+---------- Total | 28 32 | 60 | 46.67 53.33 | 100.00

Pearson chi2(1) = 1.8290 Pr = 0.176

. cc Status HT, by(Col)

Kolesterol | OR [95% Conf. Interval] M-H Weight-----------------+------------------------------------------------- Risiko Rendah | 10.93333 1.81543 112.2383 .4545455 (exact) Risiko Tinggi | 2.04 .6418827 6.589288 2.5 (exact)-----------------+------------------------------------------------- Crude | 3.470588 1.49469 8.104492 (exact) M-H combined | 3.408205 1.461474 7.948046 -------------------------------------------------------------------Test of homogeneity (M-H) chi2(1) = 2.83 Pr>chi2 = 0.0922

Test that combined OR = 1: Mantel-Haenszel chi2(1) = 8.86 Pr>chi2 = 0.0029

Page 7: Analisis Stata

Analisis Interaksi

. logistic Status Obes Col varOBCol

Logistic regression Number of obs = 126 LR chi2(3) = 35.35 Prob > chi2 = 0.0000Log likelihood = -62.527877 Pseudo R2 = 0.2204

------------------------------------------------------------------------------ Status | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]-------------+---------------------------------------------------------------- Obes | 1.545455 1.064981 0.63 0.528 .400395 5.965184 Col | 2 1.397477 0.99 0.321 .5084671 7.866783 varOBCol | 5.4 5.012515 1.82 0.069 .8755309 33.30551------------------------------------------------------------------------------

. logistic Status HT Col varHTCol

Logistic regression Number of obs = 126 LR chi2(3) = 33.43 Prob > chi2 = 0.0000Log likelihood = -63.48336 Pseudo R2 = 0.2084

------------------------------------------------------------------------------ Status | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]-------------+---------------------------------------------------------------- HT | 10.93333 9.251803 2.83 0.005 2.081923 57.41701 Col | 17.08333 13.73709 3.53 0.000 3.532666 82.61191 varHTCol | .1865854 .1863149 -1.68 0.093 .0263579 1.320825------------------------------------------------------------------------------

Page 8: Analisis Stata

. cs Status Obes

| Obesitas | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 32 10 | 42 Noncases | 33 51 | 84-----------------+------------------------+------------ Total | 65 61 | 126 | | Risk | .4923077 .1639344 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .3283733 | .175394 .4813525 Risk ratio | 3.003077 | 1.61847 5.572222 Attr. frac. ex. | .6670082 | .3821323 .8205384 Attr. frac. pop | .5081967 | +------------------------------------------------- chi2(1) = 15.27 Pr>chi2 = 0.0001

. cs Status HT

| Hipertensi | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 25 17 | 42 Noncases | 25 59 | 84-----------------+------------------------+------------ Total | 50 76 | 126 | | Risk | .5 .2236842 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .2763158 | .1090301 .4436015 Risk ratio | 2.235294 | 1.352732 3.693667 Attr. frac. ex. | .5526316 | .2607551 .7292663 Attr. frac. pop | .3289474 | +------------------------------------------------- chi2(1) = 10.36 Pr>chi2 = 0.0013

. cs Status Col

| Kolesterol | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 32 10 | 42 Noncases | 28 56 | 84-----------------+------------------------+------------ Total | 60 66 | 126 | | Risk | .5333333 .1515152 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .3818182 | .2287903 .5348461 Risk ratio | 3.52 | 1.897295 6.53056 Attr. frac. ex. | .7159091 | .4729339 .8468738 Attr. frac. pop | .5454545 | +------------------------------------------------- chi2(1) = 20.62 Pr>chi2 = 0.0000

Page 9: Analisis Stata

. cs Status JK

| Jenis Kelamin | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 31 11 | 42 Noncases | 38 46 | 84-----------------+------------------------+------------ Total | 69 57 | 126 | | Risk | .4492754 .1929825 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .2562929 | .1005012 .4120846 Risk ratio | 2.328063 | 1.288355 4.206822 Attr. frac. ex. | .5704584 | .2238162 .7622908 Attr. frac. pop | .4210526 | +------------------------------------------------- chi2(1) = 9.23 Pr>chi2 = 0.0024

. cs Status Rokok

| Merokok | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 4 38 | 42 Noncases | 5 79 | 84-----------------+------------------------+------------ Total | 9 117 | 126 | | Risk | .4444444 .3247863 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .1196581 | -.2158864 .4552026 Risk ratio | 1.368421 | .6299617 2.972524 Attr. frac. ex. | .2692308 | -.5873981 .6635855 Attr. frac. pop | .025641 | +------------------------------------------------- chi2(1) = 0.54 Pr>chi2 = 0.4631

. cs Status Aktiv

| Aktivitas Fisik | | Exposed Unexposed | Total-----------------+------------------------+------------ Cases | 36 6 | 42 Noncases | 64 20 | 84-----------------+------------------------+------------ Total | 100 26 | 126 | | Risk | .36 .2307692 | .3333333 | | | Point estimate | [95% Conf. Interval] |------------------------+------------------------ Risk difference | .1292308 | -.0580611 .3165227 Risk ratio | 1.56 | .7377343 3.298749 Attr. frac. ex. | .3589744 | -.3555015 .6968547 Attr. frac. pop | .3076923 | +------------------------------------------------- chi2(1) = 1.55 Pr>chi2 = 0.2130