oct-15h.s.1oct-15h.s.1oct-151 h.s.1oct-15h.s.1oct-15h.s.1 causal graphs, epi forum hein stigum

23
03/30/2 2 H.S . 1 03/30/2 2 H.S . 1 03/30/2 2 1 03/30/2 2 H.S . 1 03/30/2 2 H.S . 1 03/30/2 2 H.S . 1 Causal Graphs, epi forum Hein Stigum http://folk.uio.no/heins/ talks

Upload: bruce-stevens

Post on 12-Jan-2016

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 104/21/23 H.S. 104/21/23 104/21/23 H.S. 104/21/23 H.S. 104/21/23 H.S. 1

Causal Graphs, epi forum

Hein Stigum

http://folk.uio.no/heins/talks

Page 2: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 204/21/23 H.S. 204/21/23 204/21/23 H.S. 204/21/23 H.S. 204/21/23 H.S. 2

Agenda

• Motivating examples

• Concepts– Confounder, Collider

• Analyzing DAGs– Paths

• Examples– Confounding

– Mixed

– Selection bias

Page 3: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 3

Motivating examples

• Statins and coronary heart disease– Disease risk: lifestyle, cholesterol

• Diabetes and fractures– Disease risk: fall, bone density

– Exposure risk: BMI, Physical activity

• Diabetes and fractures– Analyze among hospital patients

– Exclude hospital patients

Adjust or not?

Exclude or not?

Page 4: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 404/21/23 H.S. 4

ConceptsCausal versus casual

04/21/23 H.S. 404/21/23 404/21/23 H.S. 404/21/23 H.S. 4

Page 5: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 504/21/23 H.S. 504/21/23 504/21/23 H.S. 5

god-DAG

Evitamin

Dbirth defects

Cage

Uobesity

Read of the DAG:Causality = arrowsAssociations = paths

Node = variableArrow = cause, (at least one individual effect)

DAG=Directed Acyclic Graph

Questions on the DAG:E-D effect biased?Adjust for age?

Page 6: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 604/21/23 H.S. 604/21/23 6

Association and Cause

Lungcancer

Yellowfingers

Association Possible causal structure

Lungcancer

Yellowfingers

Cause

Lungcancer

Yellowfingers

Confounder

Smoke

Lungcancer

Yellowfingers

Collider

Hospital

H.S.

Page 7: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 704/21/23 H.S. 704/21/23 704/21/23 H.S. 704/21/23 H.S. 7

Confounder idea

• A confounder induces an association between its effects• Conditioning on a confounder removes the association• Condition = (restrict, stratify, adjust)

Yellow fingers

Smoking

Lung cancer

A common cause

+

++

Adjust for smoking

Yellow fingers

Smoking

Lung cancer

++

Page 8: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 804/21/23 H.S. 804/21/23 804/21/23 H.S. 804/21/23 H.S. 8

Collider idea

• Conditioning on a collider induces an association between its causes

• “And” and “or” selection leads to different bias

Yellow fingers

Hospital

Lung cancer

Two causes for coming to hospital

- or+ and

++

Yellow fingers

Hospital

Lung cancer

Select subjects in hospital

++

Page 9: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 9

Data driven analysis

E D

C

E D

C

E D

C

E D

C

Want the effect of E on D (E precedes D)

Observe the two associations E-C and D-CAssume criteria dictates adjusting for C (likelihood ratio, Akaike ( 赤池 弘次 ) or change in estimate)

The undirected graph above is compatible with three DAGs:

Confounder1. Adjust

Mediator2. Adjust (direct)

3. Not adjust (total)

Collider4. Not adjust

Conclusion: The data driven method is correct in 2 out of 4 situationsNeed information from outside the data to do a proper analysis

Page 10: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1004/21/23 H.S. 10

Analyzing DAGS: PathsThe Path of the Righteous

04/21/23 H.S. 10

Page 11: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 11

Paths

04/21/23 H.S. 11

Goal: Keep causal paths of interest openClose all non causal paths

Path: Any trail from E to D (without repeating or crossing itself)

Types: Causal, Non causalStates: Open, Closed

1. Causal path: E..D (all arrows in the same direction)

Before conditioning:

2. Closed path: CConditioning on:

3. a non-collider closes: [C] or [C] 4. a collider opens: [C] (or a descendant of a collider)

Page 12: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1204/21/23 H.S. 12

Confounding

04/21/23 H.S. 1204/21/23 1204/21/23 H.S. 1204/21/23 H.S. 12

Page 13: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1304/21/23 1304/21/23 H.S. 13

Physical activity and Coronary Heart Disease (CHD)

EPhys. Act.

DCHD

C1age

Bias

Conditioning on C1 and C2  Path Type Status

1 ED Causal Open2 EC1]D Noncausal Closed3 EC2]D Noncausal Closed

No bias

Unconditional  Path Type Status

1 ED Causal Open2 EC1D Noncausal Open3 EC2D Noncausal Open

C2sex

1. We want the total effect of Physical Activity on CHD. What should we adjust for?

Page 14: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1404/21/23 H.S. 1404/21/23 1404/21/23 H.S. 14

Vitamin and birth defects

Evitamin

Dbirth defects

Cage

Uobesity

Bias in E-D? Adjust for C?

Bias

Conditioning on C  Path Type Status

1 ED Causal Open2 EC]UD Non-causal Closed No bias

Unconditional  Path Type Status

1 ED Causal Open2 ECUD Non-causal Open

This exampleand previous slide

are both confounding

Page 15: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1504/21/23 H.S. 15

Mixed

04/21/23 H.S. 1504/21/23 1504/21/23 H.S. 1504/21/23 H.S. 15

Page 16: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 16

Diabetes and Fractures

Ediabetes

Dfracture

Fprone to fall

Unconditional  Path Type Status

1 E→D Causal Open2 E→F→D Causal Open3 E→B→D Causal Open4 E←V→B→D Non-causal Open5 E←P→B→D Non-causal Open

Pphysical activity

Bbone

density

VBMI

Conditional  Path Type Status

1 E→D Causal Open2 E→F→D Causal Open3 E→B→D Causal Open4 E←[V]→B→D Non-causal Closed5 E←[P]→B→D Non-causal Closed

Mediators

Confounders

We want the total effect ofdiabetes on fractures

Page 17: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 17

Statin and CHD

1. We want the total effect of statin on CHD. What would we adjust for?

2. Can we estimate the direct effect of statin on CHD (not mediated through cholesterol)?E

statinD

CHD

Ccholesterol

Ulifestyle

UnconditionalPath Type Status

1 E D Causal Open2 E C D Causal Open3 E C U D Non-causal Closed

No adjustments gives the total effect

Conditioning on CPath Type Status

1 E D Causal Open2 E C] D Causal Closed3 E C] U D Non-causal Open

Adjusting for C opens the collider pathmust also adjust for Uto get the direct effect

Is C a collider?

Page 18: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 1804/21/23 H.S. 18

Selection bias

04/21/23 H.S. 1804/21/23 1804/21/23 H.S. 1804/21/23 H.S. 18

Page 19: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 19

Diabetes and Fractures

Ediabetes

Dfracture

Hhospital

Collider, selection bias

1. Convenience: Conduct the study among

hospital patients?

Unconditional  Path Type Status

1 E→D Causal Open2 E→H←D Non-causal Closed

Conditional  Path Type Status

1 E→D Causal Open2 E→[H]←D Non-Causal Open

Collider stratification bias: at least on stratum is biased

2. Homogeneous sample: Exclude hospital patients

Page 20: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 20

Selection bias: size and direction

1 0 sum

1 36 64 1000 164 736 900

1000RR= 2.0

DPopulation

E1 0 sum

1 22 13 350 49 74 123

157RR= 1.6

DHospital

E1 0 sum

1 15 51 650 115 663 777

843RR= 1.5

No hospitalD

E

1 0

1 0.6 0.20 0.3 0.1

Response= 16 %

D

E

2.0 3.0

2.0E D

HHospital risk:

Page 21: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

Adjusting for selection bias

04/21/23 H.S. 21

Fprone to fall

Ediabetes

Dfracture

Hhospital

  Path Type Status1 E→D Causal Open2 E→F→[H] ←D Non-causal Open Adjust for F to close this path

Page 22: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 2204/21/23 H.S. 22

Summing up

• Data driven analyses do not work. Need (causal) information from outside the data.

• DAGs are intuitive and accurate tools to display that information.

• Paths show the flow of causality and of bias and guide the analysis.

• DAGs clarify concepts like confounding and selection bias, and show that we can adjust for both.

04/21/23 H.S. 22

Better discussion based on DAGs

Page 23: Oct-15H.S.1Oct-15H.S.1Oct-151 H.S.1Oct-15H.S.1Oct-15H.S.1 Causal Graphs, epi forum Hein Stigum

04/21/23 H.S. 2304/21/23 H.S. 2304/21/23 23

References1 Rothman KJ, Greenland S, Lash TL. Modern Epidemiology. 3. ed. Philadelphia:

Lippincott Willams & Williams,2008.

2 Hernan MA, Hernandez-Diaz S, Robins JM. A structural approach to selection bias. Epidemiology 2004; 15: 615-25.

3 Hernandez-Diaz S, Schisterman EF, Hernan MA. The birth weight "paradox" uncovered? Am J Epidemiol 2006; 164: 1115-20.

4 Schisterman EF, Cole SR, Platt RW. Overadjustment Bias and Unnecessary Adjustment in Epidemiologic Studies. Epidemiology 2009; 20: 488-95.

5 VanderWeele TJ, Hernan MA, Robins JM. Causal directed acyclic graphs and the direction of unmeasured confounding bias. Epidemiology 2008; 19: 720-8.

6 VanderWeele TJ, Robins JM. Four types of effect modification - A classification based on directed acyclic graphs. Epidemiology 2007; 18: 561-8.

7 Weinberg CR. Can DAGs clarify effect modification? Epidemiology 2007; 18: 569-72.

• Hernan and Robins, Causal Inference (coming)

04/21/23 H.S. 23