Contingency Analysis Flashcards

(12 cards)

1
Q

What is relative risk

A

compares the probability of an outcome in two groups. Common in cohort studies (prospective)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you calculate relative risk

A

RR = P(event|unexposed) / P(event|exposed)

Or in terms of a 2×2 table:

               Event (Yes)	 Event (No)	Total Exposed	         a                    b                a + b Unexposed	 c                     d               c + d 

RR = a/(a+b) / c/(c+d)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do the different values of RR mean

A

RR = 1 → no difference in risk

RR > 1 → increased risk in exposed group

RR < 1 → decreased risk in exposed group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an odds ratio

A

compares the odds of an event occurring in one group to another
common in case - control studies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Whats the formula for an OR from a 2x2 table

A

OR = a x d / b x c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do the different values of OR mean

A

OR = 1 → no association

OR > 1 → higher odds in exposed group

OR < 1 → lower odds in exposed group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you calculate a confidence interval for OR

A
  1. Calculate the log OR:
    log(OR)
  2. Calculate the standard error of log(OR):
    𝑆𝐸 log (𝑂𝑅) = √(1/a) + (1/b) + (1/c) + (1/d)
  3. Construct the CI on the log scale:
    log(OR) ± z∗ x SE log(OR)
  4. Exponentiate the endpoints to get the CI for OR:
    (𝑒 lower, 𝑒 upper)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When do you use the Chi-Squared contingency test

A

To test whether two categorical variables are independent (no association)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you calculate a Chi-Squared contingency test

A
  1. Set up a 2×2 or r×c table of observed counts
  2. Calculate expected counts:
    𝐸𝑖𝑗 = rowtotal x columntotal / grandtotal
  3. Use test statistic:

𝜒² = ∑ ( 𝑂𝑖𝑗 - 𝐸𝑖𝑗)² / 𝐸𝑖𝑗

  1. Degrees of freedom:
    df=(r−1)(c−1)
  2. Compare to critical value or get p-value from χ² table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When should you use the Chi-Squared contingency test

A

only if all expected counts ≥ 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When do you use Fisher’s exact test

A

used instead of chi-squared when sample sizes are small (especially expected count < 5 in any cell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you carrying out Fisher’s exact test

A
  1. Use a 2×2 contingency table
  2. Calculate the exact probability of observing the data (or more extreme data) under the null hypothesis of no association

3.Done using software or online calculator (exact formula involves factorials)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly