Download presentation
Presentation is loading. Please wait.
Published byJayson Leonard Modified over 6 years ago
1
Examples and SAS introduction: -Violations of the rare disease assumption -Use of Fisher’s exact test January 14, 2004
2
1. When can the OR mislead?
3
When is the OR is a good approximation of the RR?
General Rule of Thumb: “OR is a good approximation as long as the probability of the outcome in the unexposed is less than 10%”
4
February 25, 1999 Volume 340: From: “The Effect of Race and Sex on Physicians' Recommendations for Cardiac Catheterization” Study overview: Researchers developed a computerized survey instrument to assess physicians' recommendations for managing chest pain. Actors portrayed patients with particular characteristics (race and sex) in scripted interviews about their symptoms. 720 Physicians at two national meetings viewed a recorded interview and was given other data about a hypothetical patient. He or she then made recommendations about that patient's care.
5
February 25, 1999 Volume 340: From: “The Effect of Race and Sex on Physicians' Recommendations for Cardiac Catheterization”
6
Their results… The Media Reports: “Doctors were only 60 percent as likely to order cardiac catheterization for women and blacks as for men and whites. For black women, the doctors were only 40 percent as likely to order catheterization.”
7
Media headlines on Feb 25th, 1999…
Wall Street Journal: “Study suggests race, sex influence physicians' care.” New York Times: Doctor bias may affect heart care, study finds.” Los Angeles Times: “Heart study points to race, sex bias.” Washington Post: “Georgetown University study finds disparity in heart care; doctors less likely to refer blacks, women for cardiac test.” USA Today: “Heart care reflects race and sex, not symptoms.” ABC News: “Health care and race”
8
A closer look at the data…
The authors failed to report the risk ratios: RR for women: .847/.906=.93 RR for black race: .847/.906=.93 Correct conclusion: Only a 7% decrease in chance of being offered correct treatment.
9
Lessons learned: 90% outcome is not rare!
OR is a poor approximation of the RR here, magnifying the observed effect almost 6-fold. Beware! Even the New England Journal doesn’t always get it right! SAS automatically calculates both, so check how different the two values are even if the RR is not appropriate. If they are very different, you have to be very cautious in how you interpret the OR.
10
SAS code and output for generating OR/RR from 2x2 table
Cath No Cath Female 305 55 Male 326 34 360
11
data cath_data; input IsFemale GotCath Freq; datalines; 1 0 55 0 0 34 run; data cath_data; *Fix quirky reversal of SAS 2x2 tables; set cath_data; IsFemale=1-IsFemale; GotCath=1-GotCath; proc freq data=cath_data; tables IsFemale*GotCath /measures; weight freq; run;
12
SAS output Statistics for Table of IsFemale by GotCath
Estimates of the Relative Risk (Row1/Row2) Type of Study Value % Confidence Limits ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Case-Control (Odds Ratio) Cohort (Col1 Risk) Cohort (Col2 Risk) Sample Size = 720
13
Furthermore…stratification shows…
14
2. Example of Fisher’s Exact Test
15
Fisher’s “Tea-tasting experiment” (p. 40 Agresti)
Claim: Fisher’s colleague (call her “Cathy”) claimed that, when drinking tea, she could distinguish whether milk or tea was added to the cup first. To test her claim, Fisher designed an experiment in which she tasted 8 cups of tea (4 cups had milk poured first, 4 had tea poured first). Null hypothesis: Cathy’s guessing abilities are no better than chance. Alternatives hypotheses: Right-tail: She guesses right more than expected by chance. Left-tail: She guesses wrong more than expected by chance
16
Fisher’s “Tea-tasting experiment” (p. 40 Agresti)
Experimental Results: Milk Tea 3 1 Guess poured first Poured First 4
17
Fisher’s Exact Test Step 1: Identify tables that are as extreme or more extreme than what actually happened: Here she identified 3 out of 4 of the milk-poured-first teas correctly. Is that good luck or real talent? The only way she could have done better is if she identified 4 of 4 correct. Milk Tea 3 1 Guess poured first Poured First 4 Milk Tea 4 Guess poured first Poured First
18
Fisher’s Exact Test Step 2: Calculate the probability of the tables (assuming fixed marginals) Milk Tea 3 1 Guess poured first Poured First 4 Milk Tea 4 Guess poured first Poured First
19
“right-hand tail probability”: p=.243
Step 3: to get the left tail and right-tail p-values, consider the probability mass function: Probability mass function of X, where X= the number of correct identifications of the cups with milk-poured-first: “right-hand tail probability”: p=.243 “left-hand tail probability” (testing the null hypothesis that she’s systematically wrong): p=.986
20
SAS code and output for generating Fisher’s Exact statistics for 2x2 table
Milk Tea 3 1 4
21
data tea; input MilkFirst GuessedMilk Freq; datalines; 1 1 3 1 0 1 0 1 1 0 0 3 run; data tea; *Fix quirky reversal of SAS 2x2 tables; set tea; MilkFirst=1-MilkFirst; GuessedMilk=1-GuessedMilk;run; proc freq data=tea; tables MilkFirst*GuessedMilk /exact; weight freq;run;
22
SAS output Statistics for Table of MilkFirst by GuessedMilk
Statistic DF Value Prob ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Chi-Square Likelihood Ratio Chi-Square Continuity Adj. Chi-Square Mantel-Haenszel Chi-Square Phi Coefficient Contingency Coefficient Cramer's V WARNING: 100% of the cells have expected counts less than 5. Chi-Square may not be a valid test. Fisher's Exact Test ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Cell (1,1) Frequency (F) Left-sided Pr <= F Right-sided Pr >= F Table Probability (P) Two-sided Pr <= P Sample Size = 8
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.