You are on page 1of 2

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

## 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

## 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

## 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

## no .2521739 .040495 .1728052 .3315427

yes .4054054 .0570741 .2935421 .5172687

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

under Ho: .0690561 -2.22 0.026

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