You are on page 1of 2

Ttest bwt, by(smoke) Commented [B1]: Perintah untuk melakukan uji T untuk

mengetahui hubungan antara variable yang sifatnya kontinyu.

Two-sample t test with equal variances

Variable Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]

no 115 3054.957 70.1625 752.409 2915.965 3193.948


yes 74 2773.243 76.73218 660.0752 2620.316 2926.17

combined 189 2944.656 53.02858 729.0224 2840.049 3049.264

diff 281.7133 106.9687 70.69274 492.7338

diff = mean(no) - mean(yes) t = 2.6336


Ho: diff = 0 degrees of freedom = 187

Ha: diff < 0 Ha: diff != 0 Ha: diff > 0


Pr(T < t) = 0.9954 Pr(|T| > |t|) = 0.0092 Pr(T > t) = 0.0046

1. Rata-rata berat bayi dengan tidak merokok hasilnya : 3054.957


rata-rata berat bayi dengan merokok hasilnya : 2773.243
Ada perbedaan rata-rata sebesar 281.7133 dengan confident interval sebesar 70.69274-492.7338

CS low smoke Commented [B2]: Untuk melihat different dari proporsinya


hanya untuk cs low lebih kelihatan risk low

. cs low smoke

smoking status
Exposed Unexposed Total

Cases 30 29 59
Noncases 44 86 130

Total 74 115 189

Risk .4054054 .2521739 .3121693

Point estimate [95% Conf. Interval]

Risk difference .1532315 .0160718 .2903912


Risk ratio 1.607642 1.057812 2.443262
Attr. frac. ex. .377971 .0546528 .5907112
Attr. frac. pop .1921887

chi2(1) = 4.92 Pr>chi2 = 0.0265

2. Ada perbedaan proporsi sebesar 15% antara yang merokok dan tidak terhadap BBLR
PRTest Commented [B3]: Sama dengan cs low untuk melihat rasionya
. prtest low, by (smoke)

Two-sample test of proportion no: Number of obs = 115


yes: Number of obs = 74

Variable Mean Std. Err. z P>|z| [95% Conf. Interval]

no .2521739 .040495 .1728052 .3315427


yes .4054054 .0570741 .2935421 .5172687

diff -.1532315 .0699807 -.2903912 -.0160718


under Ho: .0690561 -2.22 0.026

diff = prop(no) - prop(yes) z = -2.2189


Ho: diff = 0

Ha: diff < 0 Ha: diff != 0 Ha: diff > 0


Pr(Z < z) = 0.0132 Pr(|Z| < |z|) = 0.0265 Pr(Z > z) = 0.9868