1 / 29

Lecture 2

Analyse af krydstabeller (cross-tabulations). Lecture 2. Krydstabeller. Tabeller af tællelige enheder eller frekvenser Krydstabel analyse er lavet til at analysere association, relation, sammenhæng mellem to variable Denne sammenhæng er vanskelig at beskrive statistisk

hilde
Download Presentation

Lecture 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Analyse af krydstabeller (cross-tabulations) Lecture 2 Biostatistik ST8 2007

  2. Krydstabeller • Tabeller af tællelige enheder eller frekvenser • Krydstabel analyse er lavet til at analysere association, relation, sammenhæng mellem to variable • Denne sammenhæng er vanskelig at beskrive statistisk • Nul- hypotesen: ”Der er ingen sammenhæng mellem de to variable” Biostatistik ST8 2007

  3. Chi- kvadrat testen • χ2 - test • Bruges til krydstabel analyse af tabeller med store samples • Nul- Hypotesen er at der ikke er nogen sammenhæng mellem de to variable. Biostatistik ST8 2007

  4. Fødsel og bopælstype Biostatistik ST8 2007

  5. Fødsel og bopælstype • Forventede antal hvis der ikke er nogen sammenhæng mellem fødsel og bopælstype Biostatistik ST8 2007

  6. Fødsel og bopælstype hvis nul-hypotesen er sand • 899/1443 = 62.3% er husejere. • 62.3% af dem, der fødte før termin, skulle være husejere: 99*62.3% = 99*899/1443 = 61.7 Biostatistik ST8 2007

  7. Fødsel og bopælstype hvis nul-hypotesen er sand • 899/1443 = 62.3% er husejere. • 62.3% af dem, der fødte til terminen, skulle være husejere : 1344*899/1443 = 837.3 Biostatistik ST8 2007

  8. Fødsel og bopælstype hvis nul-hypotesen er sand • 258/1443 = 17.9% bor til offentlig leje. • 17.9% af dem, der fødte før terminen, skulle bo til offentlig leje: 99*258/1443 = 17.7 Biostatistik ST8 2007

  9. Fødsel og bopælstype hvis nul-hypotesen er sand • generalt Biostatistik ST8 2007

  10. Fødsel og bopælstype hvis nul-hypotesen er sand Biostatistik ST8 2007

  11. Fødsel og bopælstypeTest for sammenhæng • Hvis nul- hypotesen er sand og tallene er store vil tabellen være chi- kvadrat fordelt • Antallet af frihedsgrader er (r-1)(k-1) = 4 Biostatistik ST8 2007

  12. Fødsel og bopælstypeTest for sammenhæng • df = 4 • 1-5% sandsynlighed for at H0 er sand • SPSS: ’bolig.sav’ etc Biostatistik ST8 2007

  13. 2 x 2 tabeller Biostatistik ST8 2007

  14. 2 x 2 tabeller Antallet af frihedsgrader er 1 Biostatistik ST8 2007

  15. Chi-kvadrat test for små samples • Chi- kvadrat testen gælder ikke for små samples • 80% af de forventede værdier skal være over 5 • Alle værdier skal være over 1 Biostatistik ST8 2007

  16. Chi-kvadrat test for små samples • Sammenføjning af grupperne Biostatistik ST8 2007

  17. Fisher’s exact test • Et eksempel Biostatistik ST8 2007

  18. Fisher’s exact test • Overlevende: a, b, c, d, e • Døde: f, g, h • Tabel 1 kan laves på 5 forskellige måder • Tabel 2: 30 • Tabel 3: 30 • Tabel 4: 5 • 70 forskellige måder Biostatistik ST8 2007

  19. Yates’ korrektion for 2x2 • Table 13.7 • Fisher: p = 0.00159 • χ2: p = 0.00112 • Yates’ p = 0.0037 Biostatistik ST8 2007

  20. Odds and odds ratios • Odds • Log odds / logit Biostatistik ST8 2007

  21. Odds ratio • Cough and Bronchitis p = 26/273 = 0.095 o = 26/247 = 0.105 Biostatistik ST8 2007

  22. Odds ratio • Odds ratio: 0.105 / 0.0439 = 2.40 Biostatistik ST8 2007

  23. Odds ratio Biostatistik ST8 2007

  24. Odds ratio Biostatistik ST8 2007

  25. Odds ratio, Confidence • ln (or) ± 1.96*SE(ln(or)) = 0.370 to 1.379 • Confidence of the odds ratio • e0.370 to e1.379 = 1.45 to 3.97 Biostatistik ST8 2007

  26. McNemar’s test Biostatistik ST8 2007

  27. Yates correction for McNemar Biostatistik ST8 2007

  28. Opgaver • Brug Chi kvadrat testen til at se om streptomycin er effektivt mod tuberkulose (Tabel 2.10) • Opgaver i kapitlet Biostatistik ST8 2007

  29. Spss • Here is the code valid until 31st May 2007 • 4344d25c2c11a607cce3 • Code registration is required on-line after the installation. Biostatistik ST8 2007

More Related