Chi Square

download Chi Square

of 7

description

Chi Square

Transcript of Chi Square

CHI-SQUARE (X2)

Uji Chi-Square ini untuk uji hipotesis komparatif kategorik tidak berpasangan.

Contoh:Chi-Square Tabel 2x2Kita ingin mengetahui hubungan antara pendidikan (perguruan tinggi dan SMA) dengan kadar HDL (normal dan rendah).Pendidikan kategorikKadar HDL kategorikKarena kedua variabel kategorik dan tidak berpasangan maka kita lakukan uji Chi-Square.

Langkah:1. Analyze Descriptives statistics Crosstabs

2. Masukkan variabel independen (pendidikan) ke Rows3. Masukkan variabel dependen (kadar HDL) ke Columns

4. Klik kotak Statistics checklist Chi-Square dan Risk klik continue

5. Klik kotak Cells checklist Observed, Expected, dan Row klik continue

Notes: Row yg di Cells itu diklik kalo kita pake cross section, cohort, dsb. Kalo kita make case-control kita klik nya Column.

6. Klik OK

Syarat yang memenuhi Uji Chi-Square:1. Tidak ada yang missing2. Tidak boleh ada nilai expected kecil dari 1 (satu)3. Tidak boleh lebih 20% sel nilai expectednya kecil dari 5 (lima)

Interpretasi Output:

Case Processing Summary

Cases

ValidMissingTotal

NPercentNPercentNPercent

Pendidikan * Kadar_HDL50100,0%00,0%50100,0%

Tidak ada yang missing

Pendidikan * Kadar_HDL Crosstabulation

Kadar_HDLTotal

NormalRendah

PendidikanPerguruan TinggiCount30636

Expected Count22,313,736,0

% within Pendidikan83,3%16,7%100,0%

SMACount11314

Expected Count8,75,314,0

% within Pendidikan7,1%92,9%100,0%

TotalCount311950

Expected Count31,019,050,0

% within Pendidikan62,0%38,0%100,0%

Chi-Square Tests

ValuedfAsymp. Sig. (2-sided)Exact Sig. (2-sided)Exact Sig. (1-sided)

Pearson Chi-Square24,836a1,000

Continuity Correctionb21,7081,000

Likelihood Ratio26,7611,000

Fisher's Exact Test,000,000

Linear-by-Linear Association24,3401,000

N of Valid Cases50

a. 0 cells (0,0%) have expected count less than 5. The minimum expected count is 5,32.

b. Computed only for a 2x2 table

Tidak ada sel yang memiliki expected count < 5Berarti syarat uji Chi-Square nya terpenuhi.

Kalau terpenuhi baca Sig. nya Pearson Chi-Square P value: 0,000 P < 0,05 (Ho ditolak)Kalau tidak terpenuhi baca Fishers Exact Test

Contoh Chi-Square Tabel 3x2Hubungan antara Ras (white, other, black) dengan BBLR (>= 2500 dan = 2500< 2500

RacewhiteCount628

Expected Count3,54,58,0

% within Race75,0%25,0%100,0%

% within low birth weight54,5%14,3%32,0%

% of Total24,0%8,0%32,0%

otherCount4610

Expected Count4,45,610,0

% within Race40,0%60,0%100,0%

% within low birth weight36,4%42,9%40,0%

% of Total16,0%24,0%40,0%

blackCount167

Expected Count3,13,97,0

% within Race14,3%85,7%100,0%

% within low birth weight9,1%42,9%28,0%

% of Total4,0%24,0%28,0%

TotalCount111425

Expected Count11,014,025,0

% within Race44,0%56,0%100,0%

% within low birth weight100,0%100,0%100,0%

% of Total44,0%56,0%100,0%

Ada 5 sel yang expected count nya < 5 tidak memenuhi

Untuk tabel 3x2 yg tidak memenuhi:1. Lakukan penggabungan sel Transform Recode into Different Variable

Masukin variabel race ke Input Variable Ketik di Output Variable name: race_2 , label: race recode Klik Change

Klik Old and New Values Karena kita mau gabungin ras other (kode 2) dan black (kode 3) jadi satu (kode 2), jadi isi kotak old value dan kotak New Values kayak gini:Kode 1 (Old Value) tetep jadi kode 1 (New Value)Kode 2 (Old Value) tetep jadi kode 2 (New Value)Kode 3 (Old Value) diubah jadi kode 2 (New Value)

Klik Continue, OK Lihat hasilnya. Kode 2 dan 3 berubah jadi kode 2 aja.

Habis itu, uji Chi-Square kayak biasa lagi pake race_2.