91
Causation? Causation? Tim Wiemken, PhD MPH CIC Assistant Professor Division of Infectious Diseases University of Louisville, Kentucky

Causation?

  • Upload
    monet

  • View
    37

  • Download
    0

Embed Size (px)

DESCRIPTION

Causation?. Tim Wiemken, PhD MPH CIC Assistant Professor Division of Infectious Diseases University of Louisville, Kentucky. Overview. 1. Testing for an Association. 2. Other Measures of Association. 3. Confidence Intervals. Overview. 1. Testing for an Association. - PowerPoint PPT Presentation

Citation preview

Page 1: Causation?

Causation?Causation?

Tim Wiemken, PhD MPH CICAssistant Professor

Division of Infectious DiseasesUniversity of Louisville, Kentucky

Page 2: Causation?

1. Testing for an Association

3. Confidence Intervals

2. Other Measures of Association

OverviewOverview

Page 3: Causation?

3. Confidence Intervals

2. Other Measures of Association

Overview 1. Testing for an Association

Page 4: Causation?

Null hypothesis: There is no association

Alternative hypothesis: There is an association

1. Develop hypothesis

Testing for Association

Page 5: Causation?

1. Develop hypothesis

Testing for Association

Page 6: Causation?

What P-value will you consider statistically significant?

Usually 0.05 - arguments for bigger/smaller

2. Choose your level of significance

α value

Testing for Association

Page 7: Causation?

Call your statistician.

• A bad test gives bad results.• A good test may give bad results (bad data?).• A good statistician may tell you if the results are bad, but

cannot always tell you if the data were bad.

3. Choose Your Test

Testing for Association

Page 8: Causation?

Will tell you if there is an association between two variables

Chi-squared Test

Testing for Association

Page 9: Causation?

Will tell you if there is an association between two variables

Chi-squared Test

Testing for Association

Measures observed versus expected counts in study groups

Page 10: Causation?

Will tell you if there is an association between two variables

Chi-squared Test

Testing for Association

Measures observed versus expected counts in study groups

Must have adequate sample size

Page 11: Causation?

2x2 table – categorical data

Chi-squared Test

Outcome + Outcome -

Predictor +

Predictor -

Testing for Association

Page 12: Causation?

Example

Page 13: Causation?

Hospitalized CAP Patients

HIV+ HIV-

Dead DeadAlive Alive

Does HIV Have an Effect on Patient In-Hospital Mortality?

Example

Page 14: Causation?

Significance Level

Null Hypothesis

What Test?

Does HIV Have an Effect on Patient In-Hospital Mortality?

Example

Page 15: Causation?

Assuming a cohort study…

Does HIV Have an Effect on CAP Patient In-Hospital Mortality?

+ HIV: 118- HIV: 2790+ HIV + died : 12- HIV + died : 257

Example

Page 16: Causation?

Assuming a cohort study…

Does HIV Have an Effect on Patient In-Hospital Mortality?

Outcome + Outcome -

Predictor +

Predictor -

Example

Page 17: Causation?

Assuming a cohort study…

Does HIV Have an Effect on Patient In-Hospital Mortality?

+ HIV: 118- HIV: 2790+ HIV + died : 12- HIV + died : 257

Example

Page 18: Causation?

Assuming a cohort study…

Does HIV Have an Effect on Patient In-Hospital Mortality?

Dead + Dead -

HIV+ 12 106(118-12)

HIV- 257 2533(2790-257)

Example

Page 19: Causation?

No! P>0.05

Do they?

Example

Page 20: Causation?

Where to publish?

ExampleExample

Page 21: Causation?

Example

Page 22: Causation?

CAP Patients with H1N1

Obese (BMI ≥30) Lean (BMI <30)

Dead DeadAlive Alive

Does Obesity Have an Effect on Patient Mortality?

Example

Page 23: Causation?

Significance Level

Null Hypothesis

What Test?

Is obesity related to mortality in CAP patients?

Example

Page 24: Causation?

Assuming a cohort study…

Do obese patients with CAP due to H1N1 die more than lean patients?

+ Obese: 1004+ Lean: 2530+ Obese + died : 317+ Lean + died : 509

Example

Page 25: Causation?

Assuming a cohort study…

Do obese patients with CAP due to H1N1 die more than lean patients?

Outcome + Outcome -

Predictor +

Predictor -

Example

Page 26: Causation?

Assuming a cohort study…

Do obese patients with CAP due to H1N1 die more than lean patients?

Example

+ Obese: 1004+ Lean: 2530+ Obese + died : 317+ Lean + died : 509

Page 27: Causation?

Assuming a cohort study…

Do obese patients with CAP due to H1N1 die more than lean patients?

Dead + Dead -

Obese + 317 687 (1004-317)

Obese - 509 2021 (2530-509)

Example

Page 28: Causation?

Yes! P≤0.05

Do they?

Example

Page 29: Causation?

3. Confidence Intervals

1. Testing for an Association

2. Other Measures of Association

Overview

Page 30: Causation?

Used for cohort studies or clinical trials

Gold standard measure for observational studies

1. Risk Ratio

Answers: How much more (less) likely is this group to get an outcome versus this other group?

Measures of Association

Page 31: Causation?

How much more likely is an obese person with CAP due to 2009 H1N1 to die than a

lean person?.

Example

Dead + Dead -

Obese + 317 687 (1004-317)

Obese - 509 2021 (2530-509)

Page 32: Causation?

How much more likely is an obese person with CAP due to 2009 H1N1 to die than a

lean person?.

Example

Dead + Dead -

Obese + 317 687 (1004-317)

Obese - 509 2021 (2530-509)

Risk of death in obese group: 317 / 317+687= 0.316

Page 33: Causation?

How much more likely is an obese person with CAP due to 2009 H1N1 to die than a

lean person?.

Example

Dead + Dead -

Obese + 317 687 (1004-317)

Obese - 509 2021 (2530-509)

Risk of death in obese group: 317 / 317+687= 0.316

Risk of death in lean group: 509 / 509+2021= 0.201

Page 34: Causation?

How much more likely is an obese person with CAP due to 2009 H1N1 to die than a

lean person?.

Example

Dead + Dead -

Obese + 317 687 (1004-317)

Obese - 509 2021 (2530-509)

Risk of death in obese group: 317 / 317+687= 0.316

Risk of death in lean group: 509 / 509+2021= 0.201

Risk Ratio: 0.316 / 0.201 = 1.57

Page 35: Causation?

Interpret the Risk Ratio

Example

Who wants to interpret a risk ratio of 1.57?

Page 36: Causation?

Interpret the Risk Ratio

Example

Obese patents with CAP due to 2009 H1N1 are 57% (1.57 times) more likely to die

than lean patients.

Page 37: Causation?

Interpret the Risk Ratio

Example

If the mortality rate for lean patients is 8%, the mortality rate for obese patients is

57% higher than this: 8%*1.57 = 12.6%

Page 38: Causation?

Example

Page 39: Causation?

CAP Patients

Empiric Atypical Pathogen Coverage

No Empiric Atypical Pathogen

Coverage

Dead DeadAlive Alive

Does Empiric Atypical Pathogen Coverage Have an Effect on Patient Mortality?

Example

Page 40: Causation?

Assuming a cohort study…

Do those patients who have empiric atypical pathogen coverage die less often

than those without atypical coverage?

+ Atypical : 2220- Atypical : 658+ Atypical + died : 217- Atypical + died : 110

Example

Page 41: Causation?

Assuming a cohort study…

Do those patients who have atypical pathogen coverage die more often than

those without atypical coverage?

Outcome + Outcome -

Predictor +

Predictor -

Example

Page 42: Causation?

Assuming a cohort study…

Do those patients who have empiric atypical pathogen coverage die less often than those without atypical

coverage?

+ Atypical : 2220- Atypical : 658+ Atypical + died : 217- Atypical + died : 110

Example

Page 43: Causation?

Assuming a cohort study…

Do those patients who have atypical pathogen coverage die more often than

those without atypical coverage?

Outcome + Outcome -

Predictor + 217 2003

Predictor - 110 548

Example

Page 44: Causation?

Anyone??

Interpret the Risk Ratio

Example

Page 45: Causation?

Interpret the Risk Ratio

Example

Those with atypical coverage are 42% less likely to die as compared to those without atypical coverage

Page 46: Causation?

What does that mean?

Example

8% x 0.58 = 4.64

Just multiply original risk by the risk ratio!

Page 47: Causation?

Even Better:

Example

Number Needed to Treat

1/Absolute Risk Reduction (ARR)

ARR = Unexposed Risk – Exposed Risk

Page 48: Causation?

Even Better:

Example

Number Needed to Treat

ARR = Unexposed Risk – Exposed Risk

ARR = Risk w/out atypical coverage – Risk w/atypical coverage

Page 49: Causation?

Even Better:

Example

Number Needed to Treat

Page 50: Causation?

Even Better:

Example

Number Needed to Treat

16.7 = unexposed risk

16.7 = unexposed risk

Page 51: Causation?

Even Better:

Example

Number Needed to Treat9.8 = exposed

risk9.8 = exposed

risk

Page 52: Causation?

Even Better:

Example

Number Needed to Treat

1 / (16.7 – 9.8) = 15 (round up!)

Need to treat 15 patients to save 1

Page 53: Causation?

Used for case-control studies

Is an approximation of the risk ratio

2. Odds Ratio

Answers: How much more (less) likely are those with the outcome to have been in this group versus this other group?

Measures of Association

Page 54: Causation?

Only a good approximation when the outcome is rare

Can be an extremely bad approximation

2. Odds Ratio

Can correct with a formula

Zhang, J., & Yu, K. F. (1998). What's the relative risk? A method of correcting the odds ratio in cohort studies of common outcomes. JAMA, 280(19), 1690-1691.

Measures of Association

Page 55: Causation?

Acinetobacter outbreak

You gather information from 100 patients with Acinetobacter and 200 patients without.

Example

Need to identify the risk factors

Measures of Association

Select sample based on the outcome (Acinetobacter)

Page 56: Causation?

Key:

Example

Measures of Association

Because the sample was selected based on the outcome (a subset of everyone who might get the outcome in your

population), you can never know the actual incidence of the outcome in everyone who was exposed.

Page 57: Causation?

Cohort Study Sample

Example

Measures of Association

Everyone with Predictor

Everyone without Predictor

Outcome

Outcome

Page 58: Causation?

Case-Control Study Sample

Example

Measures of Association

Subset with Outcome

Subset without Outcome

Predictor +

Predictor -

Page 59: Causation?

Case-Control Study Sample

Example

Measures of Association

Subset with Outcome

Subset without Outcome

Predictor +

Predictor -

Cannot know everyone with predictor who gets

the outcome

Page 60: Causation?

Example

Analyze a number of risk factors to see if they are associated with Acinetobacter infection

Measures of Association

Page 61: Causation?

+ Acinetobacter : 100- Acinetobacter : 200+ Acinetobacter + wound : 55- Acinetobacter + wound : 10

Outbreak Investigation: Was having a traumatic wound associated with Acinetobacter baumannii

infection?

Example

Page 62: Causation?

Assuming a case-control study…

Outbreak Investigation: Was having a traumatic wound associated with Acinetobacter baumannii infection?

Outcome + Outcome -

Predictor +

Predictor -

Example

Page 63: Causation?

+ Acinetobacter : 100- Acinetobacter : 200+ Acinetobacter + wound : 55- Acinetobacter + wound : 10

Outbreak Investigation: Was having a traumatic wound associated with Acinetobacter baumannii

infection?

Example

Page 64: Causation?

Assuming a case-control study…

Outbreak Investigation: Was having a traumatic wound associated with Acinetobacter baumannii infection?

Acinetobacter + Acinetobacter -

Wound + 55 10

Wound - 45 190

ExampleExample

Page 65: Causation?

Anyone??

Interpret the Odds Ratio

Example

Page 66: Causation?

Those with Acinetobacter have a 23 times higher odds of having a nonsurgical wound compared to those without Acinetobacter.

Interpret the Odds Ratio

Example

Page 67: Causation?

What?

Interpret the Odds Ratio

Outcome + Outcome -

Predictor +

Predictor -

Order of interpretation:

ExampleExample

Page 68: Causation?

Risk: Know the incidence of the outcome.

So what’s the difference?

How you choose your population

Odds: Don’t know the incidence of the outcome.

Risk Versus Odds

Page 69: Causation?

So what is the difference?

How you choose your population

You can’t identify the likelihood of someone with a predictor getting an outcome because you don’t know who all had the

outcome

Risk Versus Odds

Page 70: Causation?

Correct the Odds

Common Outcomes = Odds is a poor approximation of Risk

Risk Versus Odds

Page 71: Causation?

Even Chuck Norris Hates Odds.

So what’s the difference?

How you choose your population

Risk Versus Odds

Page 72: Causation?

Used for Time-to-event data

As good as the risk ratio

3. Hazard Ratio

Answers: How much more (less) likely are those in this group to get the outcome versus this other group at any given time?

Measures of Association

Page 73: Causation?

1. Testing for an Association

2. Other Measures of Association

3. Confidence Intervals

Overview

Page 74: Causation?

Patients in the Universe

Patients in the

Sample

Sampling

Generalizing

Confidence IntervalsConfidence Intervals

Page 75: Causation?

Uses an arbitrary cutoff (0.05)

Doesn’t give info on precision

P-value is not good.

Doesn’t help you generalize

Confidence Intervals

Fix: Use Confidence Interval

Page 76: Causation?

You are 95% confident that the risk (odds) of the patients in the universe is between that interval.

Definition – 95% CI

Confidence Intervals

Page 77: Causation?

You are 95% confident that the risk (odds) of the patients in the universe is between that interval.

Definition – 95% CI

“Universe” is not everyone in the world – it is everyone you can generalize back to.

Confidence Intervals

Page 78: Causation?

You are 95% confident that the risk (odds) of the patients in the universe is between that interval.

Definition – 95% CI

“Universe” is not everyone in the world – it is everyone you can generalize back to.

Confidence Intervals

If the CI includes 1, that measure of association is not statistically significant (like a P-value >0.05)

Page 79: Causation?

You are 95% confident that the risk (odds) of the patients in the universe is between that interval.

Definition – 95% CI

“Universe” is not everyone in the world – it is everyone you can generalize back to.

Confidence Intervals

‘Tighter’ CI = more power, more precision, larger sample

If the CI includes 1, that measure of association is not statistically significant (like a P-value >0.05)

Page 80: Causation?

Caveat

Confidence Intervals

Since CI gets tighter with more people in the sample, every measure of association (except exactly 1) will eventually be significant with a large enough sample size.

Page 81: Causation?

Is this risk ratio statistically significant?

Dead + Dead -

Bacteremia + 25 100

Bacteremia - 310 1537

Confidence Intervals

Page 82: Causation?

No – 95% Confidence Interval includes 1

Is the RR from the bacteremia example statistically significant?

Risk Ratio: 1.19

95% CI: (0.83,

1.72)

Confidence Intervals

Page 83: Causation?

Using the same proportions of Predictors and Outcomes

What happens as we increase the sample size?

Dead + Dead -

Bacteremia + 200 800

Bacteremia - 2500 12400

ExampleExample

Page 84: Causation?

Yes – 95% CI does not include 1.

Now is the RR from the bacteremia example statistically significant?

Risk Ratio: 1.19 (Same as

before)95% Confidence Interval:

(1.05, 1.36)

Sample Size

Page 85: Causation?

The confidence interval becomes tighter

What happens as we increase the sample size?

Sample SizeSample Size

Page 86: Causation?

The confidence interval becomes tighter

What happens as we increase the sample size?

Assuming the proportion of patients in each group stays the same, the risk ratio eventually becomes statistically significant.

Sample Size

Page 87: Causation?

The confidence interval becomes tighter

What happens as we increase the sample size?

Assuming the proportion of patients in each group stays the same, the risk ratio eventually becomes statistically significant.

Sample Size

This is because the power you have to detect that effect size has increased.

Page 88: Causation?

The larger your sample, the closer you are to actually sampling the entire universe.

What happens as we increase the sample size?

Sample Size

Therefore, your confidence interval is tighter and closer to “the truth in your universe.”

Page 89: Causation?

This makes sense.

What happens as we increase the sample size?

Sample Size

The more people in your study, the closer you are to having the universe as your sample. Therefore your statistic should be pretty close to the ‘truth in the universe’.

Page 90: Causation?

Patients in the Universe Patients

in the Sample

Sampling (easy)

Generalizing (hard)

Confidence IntervalsConfidence Intervals

Page 91: Causation?

Patients in the Universe

Patients in the Sample

Sampling (hard)

Generalizing (easy)

Confidence IntervalsConfidence Intervals