Lecture 8- Contingency tables Flashcards
What do we use contingency tables for?
To show the relationship between 2 categorical variables
Draw the set up of a standard contingency table
look at lecture slides for results
What is relative risk? + How is it calculated?
The ratio of two probabilities
RR =(a/(a+b))/(c/(c+d))
What is risk difference ? + How do you calculate it?
The difference between two probabilities
a/(a + b) − c/(c + d)
What is odds ratio? + How do you calculate it?
Ratio of two odds
(a/b) /(c/d) = ad/bc
What is the convention when setting up a relative risk calculation?
The group “exposed” goes on top
How is OR symmetric and what does this mean?
Because the OR doesn’t use the row or column totals, the odds
ratio is symmetric with respect to the rows and columns in the table. This
means there is no mathematical distinction between exposure and outcome
variables (can flip the variables either way)
When should OR be used as opposed to RR?
-Quantifying associations between binary variables where there is no
“direction” e.g. alcohol consumption (Yes/No) and smoking (Yes/No), or
fever and Diarrhoea.
-Case control study, the denominator is controlled by the researcher (they choose the number of cases and controls) therefore RR has no meaning
What happens if an outcome is rare for a cohort study in terms of OR or RR?
Both will be similar so doesn’t matter what is used