+ All Categories
Home > Documents > INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic...

INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic...

Date post: 27-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
155
Transcript
Page 1: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL INFERENCE IN

POINT-TREATMENT AND

LONGITUDINAL STUDIES

LECTURE I:

INTRODUCTORY STATEMENTS AND

OVERVIEW OF COURSE

+ 1

Page 2: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

POINT TREATMENT

Causal inference distinguishes between a study

with treatment being time-independent and

longitudinal studies with time-dependent treat-

ment.

One is often concerned with estimation of a

causal e�ect (a parameter with a causal inter-

pretation) of a variable which can be manip-

ulated (Exposure or Treatment) on an out-

come of interest, possibly adjusted for other

variables.

+ 2

Page 3: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Example: Estimate the (adjusted) causal ef-

fect of being a current cigarette smoker on the

level of forced expiratory volume in one sec-

ond (FEV1) in a cohort of 2713 adult white

male former and current cigarette smokers

from cross-sectional data collected in the Har-

vard Six Cities Study (Dockery et al., 1988).

See table that includes variables on past smok-

ing history, past respiratory symptoms, age,

height and coexistent heart disease.

Page 4: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

A CAUSAL MODEL

Data Generating Experiment: Randomly draw

subject from population, measure baseline co-

variates W , assign/measure treatment/exposure

variable A and measure the outcome of inter-

est. The data on a randomly selected subject

is (Y,A, W ).

Let Ya be the random variable Y one would

have observed, if, possibly contrary to the

fact, one would have \assigned" A = a. One

refers to Ya as a counterfactual variable. The

counterfactual distribution/treatment speci�c

distribution of Ya is the distribution one would

observe in the hypothetical experiment in which

we set A = a for each subject in the popula-

tion we draw from.

+ 3

Page 5: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Linking counterfactuals to the observed

data: Each subject has an underlying vec-

tor of counterfactuals (Ya,i, a ∈ A). If subjecti has been assigned exposure/treatment Ai

in the actual study, then his/her observed Yi

equals YAi. The other Ya,i, a 6= Ai, are all

missing.

Thus one observes (Ai, Yi = YAi, Wi) on each

subject.

A causal model involves modelling of the ef-

fect of a on Ya, possibly adjusted for V ⊂ W .

An example of a causal model: E(Ya | V ) =

β0+β1a+β2V . In this causal linear regression

model ~β is a causal parameter.

Page 6: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ASSOCIATION VERSUS CAUSALITY

Regression model for observed data:

E(Y | A) = α0+ α1A.

Causal regression model: For all treatment

outcomes a

E(Ya) = β0+ β1a.

If ~α = ~β, i.e. if

E(Y | A = a) = E(Ya),

then the regression parameters ~β are causal

parameters and we say that there is no con-

founding.

If E(Y | A = a) 6= E(Ya), then we say that

the e�ect of A on Y is confounded.

+ 4

Page 7: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Confounding in terms of propensity score:

We de�ne

P (A = a | subjects characteristics)as the propensity score. Formally, the sub-

jects characteristics are de�ned by {Ya : a ∈A} and the measured covariates.

In words, it equals the probability on a partic-

ular treatment, given the subject.

In a study where one collects (Y, A) on each

subject, but no additional covariates, we say

that A is randomized if

P (A = a | subjects characteristics) = P (A = a).

In a study where one collects (Y, A, W ) on

each subject we say that A is randomized if

P (A = a | subjects characteristics) = P (A = a | W ).

Page 8: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

In words: the treatment variable is random-

ized if the probability on a particular treat-

ment outcome is a function of the observed

covariates only.

One also refers to this assumption as the as-

sumption of no unmeasured confounders.

If A is randomized in a study collecting data

(Y, A), then

E(Y | A = a) = E(Ya).

If A is randomized in a study collecting data

(Y, A,W ), then

E(Y | A = a, W ) = E(Ya | W ).

Classic example of confounding: \Carry-

ing matches" is associated with lung cancer,

but \carrying matches" does not cause lung

Page 9: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

cancer.

Page 10: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

OBSERVATIONAL VERSUS RANDOMIZED.

In a randomized study (e.g. clinical trial) the

assignment of treatment is under control of

the experimenter. In this case the propensity

score is known.

In an observational study the propensity score

is unknown, but one can still hope/arrange

that the assumption of no unmeasured con-

founder holds by collecting as many potential

confounders as possible.

+ 5

Page 11: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

EXAMPLE

Consider a study involving pregnant women

and let the outcome Y of interest be the in-

dicator of a birth defect.

Data: On n subjects we observe Y and sev-

eral variables of interest such as the level A

of alcohol consumption and smoking.

Question: Does smoking/alcohol consump-

tion have a causal e�ect on the presence of a

birth defect? In other words, if we would force

each women in the population to stop smok-

ing and drinking during pregnancy, would that

decrease the number of birth defects?

Linear regression approach: Assume

Y = α0+ α1A+ error.

Estimate α1 with linear regression of Y on A.

+ 6

Page 12: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Confounding: Large percentage of woman

who smoke and drink have stressful jobs and

bad eating habits. Thus even when there is no

causal e�ect of smoking/drinking one might

�nd that α > 0.

Adding confounders to the linear regres-

sion model? This is not solving the question!

Key to solution: Use causal linear regres-

sion model: For each smoking/drinking level

a let Ya be a random variable whose distribu-

tion equals the population distribution of Y if

each subject would smoke/drink at level a.

Model dependence of Ya on a: For example,

assume Ya = β0+β1a+error and estimate β1.

Page 13: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

EXAMPLE

Breast Cancer Data A clinic in Germany col-

lected data on 225 women with breast cancer.

At the time of detection, the tumor was sur-

gically removed and variables were recorded

that are believed to re ect the progression

and severity of disease (for example, tumor

size, tumor type and the number of lymph

nodes involved). After surgery, each woman

either received chemotherapy or not. The

time until tumor recurrence is the outcome

of interest and it is subject to right-censoring.

Question: Does chemotherapy have a causal

e�ect on time till tumor recurrence? Would

the time till recurrence distribution improve

if each woman would receive chemotherapy?

Association method: Compare survival (Kaplan-

Meier) estimate in treatment group with sur-

+ 7

Page 14: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

vival estimate in non-treatment group.

Confounding: Women with a poorer prog-

nosis were more likely to receive aggressive

treatment, i.e. chemotherapy.

Causal method: Estimate treatment speci�c

population distributions.

Page 15: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

TOPICS RELEVANT FOR THIS COURSE

• Graphical conditions for identifying a causal

e�ect. Confounding de�ned by graphical

criteria.

• Nonparametric structural equation model

for a graphical model.

• Direct and indirect e�ects (Robins and

coworkers)

• Non compliance in randomized studies (Robins

and coworkers).

+ 8

Page 16: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

• Marginal Structural Models: Estimation

and Inference (Robins).

Papers:

1) \Causal diagrams in epidemiologic research"

by Greenland, Pearl and Robins (1998).

2) \Causal diagrams in empirical research" by

Pearl (1995) with discussions.

3) \Why there is no statistical test for con-

founding, why many think there is, and why

they are almost right" (Pearl, 98).

4) \Statistics, Causality and Graphs" (Pearl,

97).

5) \Marginal Structural Models" (Robins, 98)

6) \Estimating Exposure E�ects by modelling

the expectation of exposure conditional on

confounders" (Robins, Mark, 92).

Page 17: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

Longitudinal Studies.

In a longitudinal study one collects data on a

subject over time. Let A(·) be a treatment

process, where A(k) denotes the treatment

the subject receives at time k ∈ {1,2,3,4, . . .}.Let Y (·) be an outcome process where Y (k)

denotes the outcome measured between time

A(k−1) and A(k), preceding A(k). Let L(·) bea covariate process, where L(k) represents the

covariates measured between time A(k − 1)

and A(k), preceding A(k).

The data generation process can be thought

of as a sequence of experiments over time,

where the experiment at time k is conditional

on the observed past. Treatment is now seqe-

untially randomized if the treatment assign-

ment A(k) in experiment k, conditional on

the past, is randomized (de�ned as in the

+ 9

Page 18: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

point exposure study). In other words, the

treatment assignment A(k) is only based on

the data available at that point in time: i.e.

A(1), . . . , A(k−1), L(1), . . . , L(k), Y (1), . . . , Y (k).

Causal Inference in longitudinal studies is very

delicate if there exist time-dependent covari-

ates which predict future treatment (i.e. are

a potential confounder) and are on the causal

pathway from treatment to the outcome:

Make a picture: 1) treatment(1) e�ects co-

variate(2), 2) covariate(2) e�ects treatment(2)

and future outcome etc.

Give example (treatment, cholesterol and heart

disease) of point-exposure study where one

uses the G-computation formula adjusting for

a variable on the causal pathway from A to

Y , showing that the G-computation formula

gives a useless answer.

Page 19: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Example I: Consider a study of the e�ect of

post-menopausal oestrogen on cardiac mor-

tality in which one collects as time-dependent

covariate the cholesterol level.

Cholesterol level predicts cardiac mortality.

Cholesterol level also predicts future treat-

ment since physicians withdraw women from

oestrogens at the time they develop an ele-

vated cholesterol level.

Being on oestrogens might e�ect the future

cholesterol level.

Example II: Consider an observational study

of the e�cacy of breast cancer screening (treat-

ment/exposure) on mortality in which one col-

lects also the time-dependent covariate \op-

erative removal".

Operative removal predicts mortality.

After operative removal the screening (treat-

ment) stops.

\Operative removal" is on the causal pathway

Page 20: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

from \Being screened" to death.

Example III: Consider an observational study

of the e�ect of AZT-treatment on times to

AIDS in HIV-infected subjects in which CD4-

count is a measured time-dependent covari-

ate.

CD4 predicts death and treatment and is on

the causal pathway from AZT to time till

AIDS.

Page 21: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

QUESTIONS OF INTEREST.

• The di�erence between (parameters of)

the treatment speci�c outcome distribu-

tions corresponding with \never treat" and

\always treat", possibly adjusted for base-

line covariates.

• Estimation of the treatment speci�c out-

come distributions corresponding with a

given set of possible treatment stategies,

possibly dynamic treatment stategies, pos-

sibly adjusted for baseline covariates.

• Optimal treatment strategy.

• Given a subject made it up till point t and

given its covariate and treatment history

+ 10

Page 22: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

up till point t, what is the di�erence be-

tween the treatment speci�c outcome dis-

tributions corresponding with \treating at

point t and never after" and \not treating

at point t and never after".

Page 23: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

TOPICS ADDRESSED IN THIS COURSE

• Marginal Structural Models.

• Structural Nested Models.

Papers:

1) The control of confounding by intermedi-

ate variables (Robins, 89).

2) Estimation of e�ects of sequential treat-

ments by reparametrizing directed acyclic graphs

(Robins, Wasserman, 98). 3) Marginal struc-

tural models and causal inference in epidemi-

ology (Robins, 1999).

4) Structural nested failure time models (Robins,

97). 5) Estimation of the causal e�ect of a

time-varying exposure on the marginal mean

of a repeated binary outcome (Robins, Hu,

+ 11

Page 24: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

1993).

6) Estimation of the time-dependent accel-

erated failure time model in the presence of

confounding factors.

7) G-estimation of causal e�ects: Isolated

Systolic Hypertension and cardiovascular death

in the Framingham study (Witteman et al.

1998).

8) Adjusting for di�erential rates of prophy-

laxis therapy for PCP in high versus low-dose

AZT treatment arms in an AIDS randomized

trial (Robins, Greenland, 1993).

9) G-estimation of the e�ect of prophylaxis

therapy for pneumocystis carinii pneumonia

on the survival of AIDS patients (Robins et

al., 1992).

10) Correcting for non-compliance in random-

ized trials using rank preserving structural nested

failure time models (Robins, 1991).

11) Correction for non-compliance in equiva-

Page 25: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

lence trials (Robins, 1998).

Page 26: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

PART II: CAUSAL GRAPHS

+ 1

Page 27: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL GRAPH RESEARCH

Pearl (1995) developes a formal theory for

evaluating and identifying causal e�ects of

single treatment variables using the language

of causal graphs.

Robins (many papers) provides an actual for-

mula for the counterfactual distributions in

terms of the observed data distribution in lon-

gitudinal studies under the assumption of se-

quential randomization. This formula is called

the G-computation formula which is very sim-

ple in the single treatment case.

+ 2

Page 28: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

The following lectures are concerned with show-

ing how diagrams can serve as a visual yet log-

ically rigorous aid for 1) summarizing assump-

tions about a problem, 2) identifying variables

that must be measured and controlled to ob-

tain unconfounded e�ect estimates.

Page 29: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

GRAPH TERMINOLOGY

Consider the graph in Figure 1. In this exam-

ple, A is air-pollution level, B is sex (boy or

girl), C is bronchial activity, E is antihistamine

treatment, D is astma.

ARC, EDGE: line or arrow connecting two

variables.

ADJACENT: A and C are adjacent.

Single headed arrows represent direct links from

causes to e�ects.

NODES.

PATH is any unbroken route traced out along

or against arrows or lines connecting adjacent

nodes: e.g. E-C-D is a path.

DIRECTED PATH/ CAUSAL PATH

node INTERCEPTS the path.

X is an ANCESTOR or CAUSE of Y if there

is a directed path from X to Y .

+ 3

Page 30: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Then Y is a DESCENDANT of X or AF-

FECTED by X.

X PARENT of Y.

Y CHILD of X, X is DIRECTLY AFFECTED

by Y .

Unspeci�ed common ancestors are denoted

with U, with dashed arrows to the variables

it a�ects.

DIRECTED GRAPH: all arcs between vari-

ables are arrows (single or double headed).

ACYCLIC GRAPH: no directed path forms a

closed loop.

Abbreviation for directed acyclic graph: DAG.

A path that connects X to Y is a BACK

DOOR PATH from X to Y if it has an ar-

rowhead pointing to X. Figure 1: all path

from E to D except the direct path are back

door paths.

Page 31: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

A path COLLIDES at a variable X if the path

enters and exits X through arrowheads, in

which case X is called a collider on the path.

A path is BLOCKED if it has one or more

colliders, otherwise UNBLOCKED.

See �gure 1: the back door path EACBD is

blocked because it collides at C.

E-A-C-D is unblocked. CAUSE: A is a cause

of C.

De�nition: A directed acyclic graph G is a

CAUSAL GRAPH if for each node Xi with

parents (PA)i we have Xi = fi((PA)i, εi) with

fi being a deterministic function and εi, i =

1, . . . , m, are all independent, and εi is also

independent of (PA)i, i = 1, . . . , m.

Page 32: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Let A,Y be two nodes in the causal graph,

where we have an arrow going from A to Y .

The counterfactual distribution of Ya is de-

�ned by

1) delete the equation corresponding with Xi =

A.

2) Set A = a in all the other equations.

Let (L, U) represent all non-descendants of

A. In a causal graph we have that P (A =

a | (Ya, a ∈ A), L,U) = P (A = a | L,U), i.e.

A is randomized w.r.t. observing the whole

graph.

DEFINITION OF CONFOUNDING: In a

causal DAG we say that the e�ect of A on Y

is confounded if there is an unblocked back

door path from A to Y .

Page 33: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

STATISTICAL GRAPH

Let X1, . . . , Xm be m variables. Suppose f(xi |x1, . . . , xi−1) = f(xi | (pa)i), where (pa)i is a

subset of (x1, . . . , xi−1). If we refer to (x1, . . . , xi−1)as the ancestors of xi, then this says that Xi is

independent of its ancestors, given its parents

(PA)i. In this case the density of (X1, . . . , Xm)

is given by:

p(X1, . . . , Xm) =m∏

i=1

p(Xi | (PA)i).

This likelihood of (X1, . . . , Xm) corresponds

with a STATISTICAL GRAPH de�ned by the

nodes X1, . . . , Xn, where node Xi has incom-

ing arrows from (PA)i.

Remark: A causal graph is also a statistical

graph. A statistical graph is not necessarily a

causal graph.

+ 4

Page 34: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

d-SEPARATION IN STATISTICAL GRAPH

d-SEPARATION: Let R, T and S be three

sets of nodes in the graph. We say that

R and T are d-separated by S if every un-

blocked path, including paths generated by

adjustment for variables in S, from T to R

is intercepted by a variable in S.

We can also say: S blocks every path between

R and T .

In a statistical graph we have that ~Z1 is in-

dependent of ~Z2, given a third vector ~Z3 (all

three vectors should be distinct) if ~Z1 and ~Z2

are d-SEPARATED by ~Z3.

+ 5

Page 35: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

The converse is not necessarily true: Figure

1 has a direct path and four back-door paths

between E and D. Each path transmits an as-

sociation, but these associations might can-

cel one another out. However, this always

involves perfect cancellations so that for all

practical purposes one is allowed to read \A

and B are d-separated by C" as \A and B are

independent, given C".

One says that the joint distribution p(X1, . . . , Xm)

is faithfull to the statistical graph if we have

that ~Z1 is independent of ~Z2, given a third

vector ~Z3 IF AND ONLY IF ~Z1 and ~Z2 are

d-SEPARATED by ~Z3.

See �gure 1 and 3 for a graphical illustration

for the following: Marginally A and B are not

associated since A and B are d-separated, but

A and B are associated within stata of C.

Page 36: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

SUFFICIENT SET OF ADJUSTMENT

Let A, Y be two nodes in the statistical graph.

Let L be a set of other nodes in the graph,

being non-descendents of A. Denote the

remaining non-descendents of A with U.

Let b(y | a) be the G-computation formula

(Robins):

b(y | a) =∫

p(y | a, l, u)dP (l, u).

If A is randomized for the data (Y, A,L, U),

i.e. A is independent of Ya, given L, U, for

each a, then b(y | a) = P (Ya = y). This holds,

in particular, if G is a causal graph.

However, suppose U is not observed. Then

this G-computation formula is not useful be-

cause it cannot be estimated from data. There-

fore it is of interest to understand under what

+ 6

Page 37: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

conditions we have that L is a su�cient set

of adjustment: i.e.

b(y | a) = b∗(y | a) ≡∫

p(y | a, l)dP (l).

Back door path condition: We say that

there is no back door path from A to Y if

Y is d-separated from A in GA, where GA is

the graph obtained from G by deleting all out-

going arrows from A.

Notation: A ⊥d Y .

We say that there is no back door path from

A to Y , controlling for L, if Y and A are d-

separated by L in GA.

Notation: A ⊥d Y | L.

Theorem If there is no back door path from

A to Y controlling for L, then L is su�cient

for adjustment: i.e.

b(y | a) = b∗(y | a).

Page 38: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ALTERNATIVE CRITERIA

Theorem U can be split up in U1, U2 where

U1 ⊥d A | L in G (choose U1 maximal set) and

U2 ⊥d Y | (A, L, U1) in G

⇐⇒Y ⊥d A | L in GA, i.e. there is no back door

path from A to Y controlled for L.

So a statistical graph can be used to deter-

mine a su�cient set of variables L to adjust

for to compute b(y | a). However, then we

still wonder if b(y | a) = P (Ya = y)? We know

that this is true if P (A = a | (Ya, a ∈ A), L) =P (A = a | L) (the randomization assumption

holds). This assumption holds if the statisti-

cal graph happens to be a causal graph, but

if it is not, then this is still an open question.

+ 7

Page 39: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

TWO APPROACHES

Therefore we have the following two approaches

for determing a correct formula for P (Ya = y)

using graph theory:

Statistical Graph: Using the statistical graph,

determine a su�cient set of variables L to ad-

just for, i.e. such that there is not back door

path from A to Y controlled for L. This guar-

antees that b(y | a) = b∗(y | a).

Now, just assume/hope/reason that the ran-

domization assumption holds P (A = a | (Ya, a ∈A), L) = P (A = a | L). Then the G-computation

formula b∗(y | a) only adjusting for L equals

P (Ya = y).

Causal Graph: Using a causal graph (thus

needing a much stronger set of assumptions

pertaining a causal graph), determine a su�-

cient set of variables L to adjust for, i.e. such

+ 8

Page 40: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

that there is not back door path from A to

Y controlled for L. Then the G-computation

formula b∗(y | a) only adjusting for L equals

P (Ya = y).

Note that the statistical graph theory is appli-

cable under fewer assumptions, but if one is

able to assume a causal graph, then that guar-

antees selection of a su�cient set of variables

L to truly estimate P (Ya = y).

Page 41: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

STATISTICAL CRITERIA.

The graphical condition \U can be split up in

U1, U2 where U1 ⊥d A | L in G and U2 ⊥d Y |(A, L,U1) in G" for b(y | a) = b∗(y | a) is a littlestronger than needed since b(y | a) = b∗(y | a)is only a statement in terms of distributions.

The following theorem for determining if b(y |a) = b∗(y | a) assumes only a purely statisticalassumption.

Theorem (Statistical criteria) If U can be

split up in U1, U2 where U1 is independent of

A, given L and U2 is independent of Y , given

(A, L,U1), then b(y | a) = b∗(y | a).

So it can happen that L does not d-separate

A and Y in GA in the causal graph G, while

the statistical criteria holds. In that case we

still have b∗(y | a) = P (Ya = y). for the ef-

fect of A on Y . These examples involve per-

+ 9

Page 42: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

fect cancellations and are therefore not prac-

tically relevant. The statistical criteria for

b(y | a) = b∗(y | a) can be tested based on

data, though.

Page 43: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

DEFINING NON-CONFOUNDING

IN A CAUSAL GRAPH

Graphical conditions for non-confounding

in a causal graph. Suppose that the graph

is causal. If there is no back door path from

A to Y , then the e�ect of A on Y is NOT

confounded.

If there is no back door path from A to Y

controlling for L (i.e. Y is d-separated from A

by L in GA), then the e�ect of A on Y within

stata of L is unconfounded and we call L suf-

�cient set for adjustment.

Thus if L is a su�cient set for adjustment for

the e�ect of A on Y , then the G-computation

formula b∗(y | a) only adjusting for L equals

P (Ya = y). Thus in this case one can es-

timate the counterfactual distribution of Ya

+ 10

Page 44: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

if one measures L (the other potential con-

founders U do not need to be measured).

Thus if one is able to provide a causal graph

before planning a study to determine a (ad-

justed) causal e�ect of A on Y , then one can

use this causal graph to determine which vari-

ables need to be measured beyond (A, Y ).

Page 45: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

UNNECESSARY ADJUSTMENT

Consider a causal graph.

Unnecessary adjustment and harmful ad-

justment: One can have that the e�ect of A

on Y is not confounded marginally (no back

door path in GA), but that the e�ect of A on

Y , within strata C, is confounded.

See Figure 5.

LESSON: Adjustment for variables (such as

C in Fig 5) that are not necessary to con-

trol may necessitate adjustment for even more

variables, and there might not be anymore

that would remove the bias (see Figure 6).

As a consequence the following can happen:

the marginal G-computation formula might

represent the causal e�ect of A on Y (i.e.

P (Ya = y)) while the adjusted G-computation

formula does NOT represent an adjusted causal

e�ect (i.e. P (Ya = y | C))!+ 11

Page 46: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

If one has the causal graph available, then one

can prevent this to happen, but otherwise this

is an actual risk.

To give a concrete example: the data is E, D, F

and the true causal graph is Fig 6 which we

do not know. Our goal is too estimate the

marginal causal e�ect of E on D. Suppose

we worry about F being a confounder and

therefore we use the G-computation formula

adjusting for F (WRONG), while we could

have used the marginal G-computation for-

mula (CORRECT).

EXAMPLE 1 of adjustment induced bias: In

studies of estrogen (E) and endometrical can-

cer (D), some researchers attempted to con-

trol for detection bias by stratifying on uterine

bleeding (F), which could be caused by either

Page 47: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

estrogen or cancer, as in Figure 6. The asso-

ciation between estrogen and cancer withing

levels of bleeding was drastically reduced by

this strati�cation (likely due to bias produced

by the adjustment).

EXAMPLE 2 (Healthy worker survivor e�ect):

Unmeasured health conditions in uence de-

cision to leave work. Then leaving work is

associated with mortality, even when it has

no causal e�ect on mortality. Let the expo-

sure (E) be job-assignment, which in uences

worker decisions to leave work (L). Fig 7 is

the causal graph for this scenario.

The e�ect of E on D is marginally uncon-

founded but within strata of L the e�ect of E

on D is confounded.

Page 48: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

MINIMAL SUFFICIENT SET

FOR ADJUSTMENT

A set L is minimally su�cient for adjustment

if L is su�cient for adjustment, but no proper

subset of L is su�cient.

Fig 1: {A,C} and {B, C} are minimal su�-

cient.

Fig 5: {A, C} and {B, C} are su�cient, but

not minimal su�cient.

To �nd a minimally su�cient set we may se-

quentially delete variables from a su�cient set

until no more variables can be dropped with-

out the new set failing the back door test (i.e.

not being su�cient anymore).

Fact: L can be su�cient while adding vari-

ables to L can lead to an insu�cient set.

Fig 5: L = {} is su�cient, but {C} is not suf-�cient.

+ 12

Page 49: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Fact: There may exist several di�erent mini-

mal su�cient sets.

Fig 12: {A,B, C} and {F} are minimally suf-

�cient sets of adjustment.

Page 50: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

IDENTIFIABILITY OF CAUSAL EFFECTS

IN A CAUSAL GRAPH

Given a causal graph, suppose that one can-

not �nd observed covariates L so that A and

Y are d-separated, given L. This does not

imply that the causal e�ect of A on Y is not-

identi�ed, but there does not exist one stan-

dard formula such as the G-computation for-

mula. The approach is the following. Let

(L,U) be a su�cient set for adjustment, i.e.

A ⊥d Y | (L, U), but the components U will

not be observable. Then we still have the G-

computation formula (using Pearl's notation):

P (Y = y | a) =∫

P (Y = y | A = a,L = l, U = u)dFL,U

The causal graph is a statistical graph and

thus we have a special structure of the den-

sity of all nodes in the graph. Using the

conditional independence assumptions of the

+ 13

Page 51: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

statistical graph can sometimes be used to

eliminate U from the G-computation formula.

This is a purely algebraic excercise. If one

succeeds in doing this then one has proved

that P (Y = y | a) is still identi�able.

Pearl (1995) developes a \Calculus of Inter-

vention" for causal graphs which can be help-

ful in carrying out this excercise.

Theorem 3 (Pearl 1995)

Rule 1 (insertion/deletion of observation):

P (Y = y | a, Z, W ) = P (Y = y | a, W ) if Y ⊥d Z | (A, W

Rule 2 (action/observation exchange):

P (Y = y | a, z, W ) = P (Y = y | a, Z = z, W ) if Y ⊥d Z

Rule 3 (insertion/deletion of actions):

P (Y = y | a, z, W ) = P (Y = y | a, W ) if Y ⊥d Z | (A, W

where Z(W ) is the set of Z-nodes that are

not ancestors of any W -node in G �X.

Page 52: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

With the help of this calculus one can prove

the following theorem:

Theorem. (The front door criterion) Sup-

pose a set of variables Z satis�es the follow-

ing conditions relative to an ordered pair of

variables (A, Y ).: (i) Z intercepts all directed

paths from A to Y , (ii) there is no back door

path between A and Z, and (iii) every back

door path between Z and Y is blocked by A.

Then the causal e�ect of A on Y is identi�able

and given by:

P (Y = y | a) = ∑a

P (Z = z | A = a)∑a′

P (Y = y | A =

Consider Figure 3 of Pearl 1995.

Page 53: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

IDENTIFIABILITY OF CAUSAL EFFECTS

IN A CAUSAL GRAPH

Given a causal graph, suppose that one can-

not �nd observed covariates L so that A and

Y are d-separated, given L. This does not

imply that the causal e�ect of A on Y is not-

identi�ed, but there does not exist one stan-

dard formula such as the G-computation for-

mula. The approach is the following. Let

(L,U) be a su�cient set for adjustment, i.e.

A ⊥d Y | (L, U), but the components U will

not be observable. Then we still have the G-

computation formula (using Pearl's notation):

P (Y = y | a) =∫

P (Y = y | A = a,L = l, U = u)dFL,U

The causal graph is a statistical graph and

thus we have a special structure of the den-

sity of all nodes in the graph. Using the

conditional independence assumptions of the

+ 14

Page 54: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

statistical graph can sometimes be used to

eliminate U from the G-computation formula.

This is a purely algebraic excercise. If one

succeeds in doing this then one has proved

that P (Y = y | a) is still identi�able.

Pearl (1995) developes a \Calculus of Inter-

vention" for causal graphs which can be help-

ful in carrying out this excercise.

Page 55: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Theorem 3 (Pearl 1995)

Rule 1 (insertion/deletion of observation):

P (Y = y | a, Z, W ) = P (Y = y | a, W )

if Y ⊥d Z | (A, W ) in G �A.

Rule 2 (action/observation exchange):

P (Y = y | a, z, W ) = P (Y = y | a, Z = z, W )

if Y ⊥d Z | (A, W ) in G �AZ.

Rule 3 (insertion/deletion of actions):

P (Y = y | a, z, W ) = P (Y = y | a, W )

if Y ⊥d Z | (A, W ) in G �AZ(W ), where Z(W ) is

the set of Z-nodes that are not ancestors of

any W -node in G �A.

Page 56: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

With the help of this calculus one can prove

the following theorem:

Theorem. (The front door criterion) Sup-

pose a set of variables Z satis�es the follow-

ing conditions relative to an ordered pair of

variables (A, Y ):

(i) Z intercepts all directed paths from A to

Y , (ii) there is no back door path between A

and Z, and

(iii) every back door path between Z and Y is

blocked by A. Then the causal e�ect P (Y =

y | a) of A on Y is identi�able and given by:

∑a

P (Z = z | a)∑a′

P (Y = y | a′, z)P (A = a′).

Page 57: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Consider Figure 3 of Pearl 1995.

Example: This graphical criterion permits

identi�cation of causal e�ects by measuring

variables that are a�ected by treatment. Let

A be smoking, Y lung cancer and Z the amount

of tar deposited in subject's lungs, U are un-

measured confounders of the e�ect of smook-

ing.

Page 58: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

Proof of front door criterion.

Task 1: P (Z = z | x) = P (Z = z | x) using

rule 2.

Task 2: Compute P (Y = y | z).P (Y = y | z) = ∑

xP (Y = y | X = x, z)P (X = x | z).

By rule 3: P (X = x | z) = P (X = x) (i.e.

manipulating Z has no e�ect on X because Z

is a descendant of X in G.) By rule 2:

P (Y = y | X = x, z) = P (Y = y | X = x, Z = z)

if Z ⊥d Y | X in GZ. Thus we conclude:

P (Y = y | z) =∑x

P (Y = y | X = x, z)P (X = x)

= EXP (Y = y | X, Z = z).

Task 3: Compute P (Y = y | x). We have:

P (Y = y | x) = ∑z

P (Y = y | Z = z, x)P (Z = z | x)

=∑z

P (Y = y | Z = z, x)P (Z = z | X = x).

+ 15

Page 59: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

By rule 2

P (Y = y | Z = z, x) = P (Y = y | z, x)

since Y ⊥d Z | X in G �XZ. By rule 3 we have:

P (Y = y | z, x) = P (Y = y | z)since Y ⊥d X | Z in GXZ. Thus we have:

P (Y = y | Z = z, x) = P (Y = y | z).In task 2 we already calculated P (Y = y | z).

Thus we have shown P (Y = y | x) equals∑z

P (Z = z | x)∑x′

P (Y = y | x′, z)P (X = x′).

Page 60: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL INFERENCE BY

SURROGATE EXPERIMENTS

Suppose we wish to learn the causal e�ect of

A on Y when P (y | a) is not identi�able (due

to unmeasured confounders) and for practi-

cal (ethical) reasons we cannot randomize A.

Can we identify P (y | a) by randomizing a

surrogate variable Z which is easier to control

than A. For example, A is cholesterol level, Y

is heart disease and Z is diet.

Theorem: If (i) A intercepts all directed paths

form Z to Y and (ii) P (Y | a) is identi�able

in G�Z (the causal graph in which all incoming

arrows in Z are deleted).

Proof. If (i) holds, we have P (y | a) = P (y |a, z) since Y ⊥d Z | A in G �A�Z. P (y | a, z) is the

causal e�ect of A on Y in the causal graph

G�Z which is identi�able by (ii). 2

+ 16

Page 61: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Translated to our cholesterol example, there

should be no direct e�ect of diet on heart dis-

ease and no confouding e�ect between choles-

terol and heart disease, unless we can measure

an intermediate variable between the two.

See �gures 7e and 7h????

Page 62: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

PART III: G-COMPUTATION

FORMULA

+ 17

Page 63: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

G-COMPUTATION IN LONGITUDINAL STUD

Let A(j) be treatment assigned at time j, L(j)

covariate values measured after A(j − 1) and

before A(j), j = 0, . . . , K. Let Y = LK+1 be

the outcome of interest. Then the temporal

ordering of all measured variables is given by:

L(0), A(0), L(1), . . . , L(K), A(K), Y = L(K+1).

Meaning of temporal ordering: The fu-

ture variables cannot a�ect the past variables:

e.g. the counterfactual L(0)A(0)=a(0) is not

a�ected by a(0).

The corresponding density representation is

given by:

f(v) = f(l0)f(a0 | l0)f(l1 | a0, l0) . . . f(lK+1 | �lK,�aK).

Given a treatment vector �a∗, the density f�a∗(v) =

f�a∗(y,�lK) is de�ned by the density f(v) except

+ 18

Page 64: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

that f(aj | �aj−1,�lj) is replaced by a degener-

ate distribution at a∗j.

By integrating out �lK in this joint density f�a∗(v)

we can obtain the marginal density f�a∗(y):

∫. . .

∫f(y | �lK,�a∗K)

K∏j=1

f(lj | �lj−1,�a∗j−1)dµ(lj).

Thus the marginal distribution F�a∗ is given by:∫. . .

∫P (Y < y | �lK,�a∗K)

K∏j=1

f(lj | �lj−1,�a∗j−1)dµ(lj).

Robins refers to this as the G-computation

algorithm formula or functional for the e�ect

of treatment action �A = �a∗ on the outcome Y .

If the statistical graph is causal or if treatment

assignment of A(j) is sequentially randomized

then

F�a∗(y) = P (Y�a∗ ≤ y).

Let's state this as a theorem.

Page 65: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Theorem. Suppose the ordering

L(0), A(0), L(1), . . . , L(K), A(K), Y = L(K+1)

is temporal in the sense that L(j) is only af-

fected by �A(j − 1) for j = 1, . . . , K + 1. Con-

sider the G-computations formulas f�a∗(y,�lK)

and f�a∗(y) corresponding with this ordering.

If

A(j) ⊥ (Y�a, L�a : �a ∈ A) | �L(j), �A(j − 1),

then the G-computation formula f�a∗(y,�lK) equals

P (Y�a∗ = y, �LK,�a∗ = �lK).

If

A(j) ⊥ (Y�a : �a ∈ A) | �L(j), �A(j − 1),

then the G-computation formula f�a∗(y equals

P (Y�a∗ = y).

Proof. Give the general proof, see handout

(Maja).

Page 66: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

JAMIE'S HYPOTHETICAL EXAMPLE

Let A0 be a randomly assigned treatment (drugs,

yes or no) assigned at t0, L is indicator of hav-

ing developed a risk factor such as Pneumonia

at time t1, A1 is treatment (AZT) indicator

at time t1 (which can be based on values of

A0, L) and Y is an outcome at t2 such as the

indicator of being alive at t2. In this example,

we can think of A0 = 1 as a drug which pre-

vents the development of Pneumonia (L = 1).

Question 1: Estimate causal e�ect of A0. In

other words, estimate P (YA0=1 = 1)−P (YA0=0 =

1), where YA0=0 (YA0=0 = 1) is the counter-

factual outcome we would have observed on

everybody if everybody gets assigned A0 = 0.

Answer: P (Y = 1 | A0 = 1)−P (Y = 1 | A0 =

0) = 8/16 − 10/16 = −1/8. So marginally

+ 19

Page 67: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

treating hurts.

Question 2: Would it have been wrong to

adjust for L in Question 1? In other words,

would

P (Y = 1 | A0 = 1, L = 1)−P (Y = 1 | A0 = 0, L = 1)

have a causal interpretation.

Answer: If a subject developes Pneumonia

(L = 1) in spite of treatment A0 = 1, then

that says something extra about the subject

relative to a subject who developed Pneumo-

nia (L = 1) in the control treatment arm A0 =

0. Formally, since L = LA0the conditioning

event A0 = 1, L = 1 equals A0 = 1, L1 = 1

while the conditioning event A0 = 0, L = 1

equals A0 = 0, L0 = 1

Question 3: Suppose that we would like to

know which of the two treatment regimes A0 =

Page 68: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

0, A1 = 1 and A0 = 1, A1 = 1 are best. Then

we want to estimate P (Y11 = 1)−P (Y01 = 1).

How?

NAIVE I: P (Y = 1 | A0 = 0, A1 = 1)− P (Y =

1 | A0 = 1, A1 = 1). Wrong since L is a con-

founder of A1 and A0 a�ects L.

NAIVE II: Adjust for L: P (Y = 1 | A0 =

0, A1 = 1, L = 1) − P (Y = 1 | A0 = 1, A1 =

1, L = 1). In the example, this di�erence

equals 1/8 indicating treating at t0 hurts in

the L = 1 strata.

Wrong, cannot adjust for covariate a�ected

by treatment. As above, having L = 1 in

A0 = 1 group is a very di�erent statement

from having L = 1 in A0 = 0 group.

G-COMPUTATION FORMULA:

Pa0a1(Y = 1, L = l) = P (L = l)P (Y = 1 | a0, a1, l).

Page 69: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Thus P (Ya0a1 = 1) is given by:

Pa0a1(Y = 1, L = 1)+ Pa0a1(Y = 1, L = 0).

This formula gives:

P (Y11 = 1) = 1/2 ∗ 1/2+ 1/2 ∗ 3/4 = 5/8.

And

P (Y01 = 1) = 1 ∗ 10/16+ 0 = 5/8.

Note that P (Y00 = 1) and P (Y10 = 1) are not

identi�ed from data example.

Page 70: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ALTERNATIVE REPRESENTATION OF

G-COMP FORMULA

Recall the G-comp formula:

f�a∗(y) =∫

. . .∫

f(y | �lK,�a∗K)K∏

j=1

f(lj | �lj−1,�a∗j−1)dµ(lj

This can be rewritten as:

E

I(Y = y, �A = �a∗)∏K

j=0P (A(j) = a∗(j) | �Aj−1 = �aj−1, �Lj−1)

.

+ 20

Page 71: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

G-COMPUTATION FORMULA

Consider a statistical graph for a set of nodes

X1, . . . , Xm, where we will assume that these

are ordered temporarily. Then the correspond-

ing representation of the density of X1, . . . , Xm

is given by:

p(x1, . . . , xm) =m∏

i=1

P (Xi = xi | (PA)i = (pa)i),

where P (Xi = xi | (PA)i = (pa)i) is the con-

ditional density of Xi, given its parents (PA)i

in the statistical graph.

Let A be a subset of the nodes (X1, . . . , Xm).

Let's denote the remainder of the nodes with

(Y, W ), where Y is an outcome variable of in-

terest. The G-computational formula for the

e�ect of A = a on Y is a functional of this

joint density representation: so it depends on

the ordering of the variables as well.

+ 21

Page 72: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

How would you obtain from this joint den-

sity the density of (Y, W ) in the hypothet-

ical world where we set A = a: Suppose

that the statistical graph is even causal. Then

we can represent the world of (X1, . . . , Xm) by

a system of m equations Xi = φi((PA)i, εi),

i = 1, . . . , m. What is the distribution of the

variables (Y, W ) if we set A = a in this sys-

tem? Setting A = a just reduces the number

of equations since all equations corresponding

with Xi ∈ A are deleted and we set A = a in

all other equations. This is just a new causal

graph and thus we can write down its corre-

sponding density.

Page 73: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

If we set A = a (i.e. we intervene by setting

A = a, but otherwise remain things as they

are), then a new density p(Y = y, W = w | a)

of the graph is obtained by setting the condi-

tional densities of nodes in A equal to a de-

generate density at A = a:∏mi=1 P (Xi = xi | (PA)i = (pa)i)∏

Xi∈A P (Xi = xi | (PA)i = (pa)i)

and this object is evaluated at (x1, . . . , xm)

corresponding with (y, w, a). This density rep-

resents the density of (Y, W ) in the hypothet-

ical world where we set A = a.

Suppose we want to obtain a formula for the

causal e�ect of setting A = a on an outcome

variable Y , where Y is one of the nodes. Then

we �nd this by integrating out all other vari-

ables in p(Y = y, W = w | a):

b(y | a) =∫w

P (Y = y, dw | a).

Page 74: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

This is the G-computation formula of Robins.

If the graph is causal, then this equals P (Ya =

y). More general, if the necessary (sequential)

randomization assumption holds for the data

(A, Y,W ) (i.e. (X1, . . . , Xn)), then this equals

P (Ya = y).

Page 75: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

G-COMPUTATION IN LONGITUDINAL STUD

Let A(j) be treatment assigned at time j, L(j)

covariate values measured after A(j − 1) and

before A(j), j = 0, . . . , K. Let Y = LK+1 be

the outcome of interest. Then the temporal

ordering of all measured variables is given by:

L(0), A(0), L(1), . . . , L(K), A(K), Y = L(K+1).

Meaning of temporal ordering: The fu-

ture variables cannot a�ect the past variables:

e.g. the counterfactual L(0)A(0)=a(0) is not

a�ected by a(0).

The corresponding density representation is

given by:

f(v) = f(l0)f(a0 | l0)f(l1 | a0, l0) . . . f(lK+1 | �lK,�aK).

Given a treatment vector �a∗, the density f�a∗(v) =

f�a∗(y,�lK) is de�ned by the density f(v) except

+ 22

Page 76: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

that f(aj | �aj−1,�lj) is replaced by a degener-

ate distribution at a∗j.

By integrating out �lK in this joint density f�a∗(v)we can obtain the marginal density f�a∗(y):

f�a∗(y) =∫

. . .∫

f(y | �lK,�a∗K)K∏

j=1

f(lj | �lj−1,�a∗j−1)dµ(lj

Thus the marginal distribution F�a∗ is given by:

F�a∗(y) =∫

. . .∫

P (Y < y | �lK,�a∗K)K∏

j=1

f(lj | �lj−1,�a∗j−1)

Robins refers to this as the G-computation

algorithm formula or functional for the e�ect

of treatment action �A = �a∗ on the outcome Y .

If the statistical graph is causal or if treatment

assignment of A(j) is sequentially randomized

then

F�a∗(y) = P (Y�a∗ ≤ y).

Page 77: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Theorem. Suppose the ordering

L(0), A(0), L(1), . . . , L(K), A(K), Y = L(K+1)

is temporal in the sense that L(j) is only af-

fected by �A(j − 1) for j = 1, . . . , K + 1. Con-

sider the G-computations formulas f�a∗(y,�lK)

and f�a∗(y) corresponding with this ordering.

If

A(j) ⊥ (Y�a, L�a : �a ∈ A) | �L(j), �A(j − 1),

then the G-computation formula f�a∗(y,�lK) equals

P (Y�a∗ = y, �LK,�a∗ = �lK).

If

A(j) ⊥ (Y�a : �a ∈ A) | �L(j), �A(j − 1),

then the G-computation formula f�a∗(y equals

P (Y�a∗ = y).

Proof. For simplicity: give the proof for

L0, A0, L1, A1, Y .

Page 78: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

G-COMPUTATION IN SIMPLE EXAMPLE.

Suppose that the data on a subject is (A, Y, W1, W2),

where A is treatment, Y is outcome, W1, W2

are covariates. Assume the following tempo-

ral ordering at which the variables are gener-

ated:

W = (W1, W2), A, Y.

In other words, one �rst generates covariates,

then the treatment is drawn possibly based on

W and subsequently one measures the out-

come Y .

Determine the G-computation formula for: P (Ya ≤y) and P (Ya ≤ y | W1).

+ 23

Page 79: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

JAMIE'S HYPOTHETICAL EXAMPLE

Let A0 be a randomly assigned treatment (yes

or no) assigned at t0, L1 is indicator of having

developed a risk factor such as Anemia at time

t1, A1 is treatment (AZT) indicator at time t1

(which can be based on values of A0, L1) and

Y is an outcome at t2 such as the indicator

of being alive at t2. In this example, we can

think of A0 = 1 as a treatment which prevents

the development of Anemia (L1 = 1).

Question 1: Estimate causal e�ect of A0. In

other words, estimate P (YA0=1 = 1)−P (YA0=0 =

1), where YA0=0 (YA0=0 = 1) is the counter-

factual outcome we would have observed on

everybody if everybody gets assigned A0 = 0.

Answer: P (Y = 1 | A0 = 1)−P (Y = 1 | A0 =

0) = 8/16 − 10/16 = −1/8. So marginally

+ 24

Page 80: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

treating hurts.

Question 2: Would it have been wrong to

adjust for L1 in Question 1? In other words,

would

P (Y = 1 | A0 = 1, L1 = 1)−P (Y = 1 | A0 = 0, L1 = 1

have a causal interpretation.

Answer: If a subject developes Anemia (L1 =

1) in spite of treatment A0 = 1, then that says

something extra about the subject relative to

a subject who developed Anemia (L1 = 1) in

the control treatment arm A0 = 0. So an

association between A0 and Y in the group

L1 = 1 can be solely due to the fact that

A0 = 1 prevents L1 = 1.

Question 3: Suppose that we would like to

know which of the two treatment regimes A0 =

0, A1 = 1 and A0 = 1, A1 = 1 are best. Then

Page 81: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

we want to estimate P (Y11 = 1)−P (Y01 = 1).

How?

NAIVE I: P (Y = 1 | A0 = 0, A1 = 1)− P (Y =

1 | A0 = 1, A1 = 1). Wrong since L1 is a con-

founder of A1 and A0 a�ects L1.

NAIVE II: Adjust for L1: P (Y = 1 | A0 =

0, A1 = 1, L1 = 1) − P (Y = 1 | A0 = 1, A1 =

1, L1 = 1). In the example, this di�erence

equals 1/8 indicating treating at t0 hurts in

the L1 = 1 strata.

Wrong, cannot adjust for covariate a�ected

by treatment. Having L1 = 1 in A0 = 1

group is a very di�erent statement from hav-

ing L1 = 1 in A0 = 0 group.

G-COMPUTATION FORMULA:

Pa0a1(Y = 1, L1 = l1) = P (L1 = l1)P (Y = 1 | A0 = a

Page 82: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Thus P (Ya0a1 = 1) is given by:

Pa0a1(Y = 1, L1 = 1)+ Pa0a1(Y = 1, L1 = 0).

This formula gives:

P (Y11 = 1) = 1/2 ∗ 1/2+ 1/2 ∗ 3/4 = 5/8.

And

P (Y01 = 1) = 1 ∗ 10/16+ 0 = 5/8.

Note that P (Y00 = 1) and P (Y10 = 1) are not

identi�ed from data example.

Page 83: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ALTERNATIVE REPRESENTATION OF

G-COMP FORMULA

Recall the G-comp formula:

f�a∗(y) =∫

. . .∫

f(y | �lK,�a∗K)K∏

j=1

f(lj | �lj−1,�a∗j−1)dµ(lj

This can be rewritten as:

f�a∗(y) = EI(Y = y, �A = �a∗)∏K

j=0P (A(j) = a∗(j) | �Aj−1 = �aj−1, �Lj−1).

yes

+ 25

Page 84: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

PART III: MARGINAL STRUCTURAL

MODELS.

IN POINT TREATMENT STUDIES

+ 1

Page 85: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

REGRESSION MODELS.

Consider the regression model:

Y = mα(A, V ) + ε, E(ε | A, V ) = 0,

where mα(A, V ) = E(Y | A, V ) is a given parametriza-

tion of the regression surface. The observed

data is n observations on (Y, A,W ), where V

is a subset of the observed covariates W , and

the goal is to estimate α ∈ IRk. Here A is

a treatment variable, W are covariates and

Y is an outcome variable of interest. Let

ε(α) ≡ Y −mα(A, V ).

EXAMPLE: If Y is Bernoulli one could as-

sume:

P (Y = 1 | A, V ) = α0+ α1A+ α2V

P (Y = 1 | A, V ) = exp(α0+ α1A+ α2V )

P (Y = 1 | A, V ) =1

1+ exp(α0+ α1A+ α2V )

+ 2

Page 86: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

In these three models the parameter α1 repre-

sents the (adjusted) Risk Di�erence, Relative

Risk and the Odds Ratio, respectively.

Each vector function (A, V ) → h(A,V ) ∈ IRk

implies an unbiased estimating equation for α

given by:

0 =n∑

i=1

h(Ai, Vi)εi(α).

(Note that the least squares estimator would

correspond with h(A,V ) = d/dαmα(A, V ).)

Under weak regularity conditions we have that

the solution αn is root-n consistent and asymp-

totically linear:

√n(αn−α) ≈ 1√

n

n∑i=1

C−1h(Ai, Vi)εi(α)+oP (1),

Page 87: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

where the k × k-matrix C is given by:

C = E

{h(A, V )

ddα

mα(A, V )

}.

In other words, with X = (A, W,Y ) we have

√n(αn − α) ≈ 1√

n

n∑i=1

IC(Xi | α)

where IC(X | α) is the so called in uence

curve given by:

IC(X | α) ≡ C−1h(A, V )ε(α).

Global summary of Proof: Let X = (Y, A, W ).

De�ne Sα(X) = h(A, V )ε(α), let α0 be the

true regression parameter, P0 be the true data

generating distribution and let Pn be the em-

pirical distribution of the data. Assume that

we have shown consistency of αn by other

means. We have:

EP0{Sαn − Sα0} = −EPn−P0Sαn(X).

Page 88: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Empirical process theory shows that:

EPn−P0Sαn(X) = EPn−P0Sα0(X) = oP (1/√

n).

The latter can be written as:

1n

n∑i=1

Sα0(Xi).

If we have di�erentiability, then

EP0{Sαn − Sα0} =d

dαEP0Sα(X)

∣∣∣∣α=α0

(αn − α0)

+o(| αn − α0 |).Let

C ≡ ddα

EP0Sα(X)

∣∣∣∣α=α0

.

Then we have:

C(αn − α0) =1n

n∑i=1

Sα0(Xi) + oP (1/√

n).

Applying C−1 to both sides gives the wished

results. 2

Thus (by central limit theorem)√

n(αn − α)

Page 89: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

is asymptotically normally distrubuted. The

normal limit distribution has expectation zero

and covariance matrix given by:

� = E(IC(X | α)IC(X | α)>)= C−1E{h(A, V )h(A, V )>ε(α)2}C−1.

Given an estimator αn of α we can estimate �

with the empirical covariance matrix of IC(Xi |αn), i = 1, . . . , n. This can be used to con-

struct an asymptotic 0.95 con�dence interval

for each component αj of α.

The optimal covariance matrix (smallest vari-

ance on the diagonal) is obtained by setting

h = hopt(A, V ) =

d

dαmα(A, V )

E(ε2(α) | A, V ).

The solution of 0 =∑n

i=1 hopt(Ai, Vi)εi(α) equals

the following weighted least squares estima-

Page 90: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

tor:

αn,opt = min−1n∑

i=1

wi {Yi −mα(Ai, Vi)}2 ,

where

wi =1

E(ε2(α) | Ai, Vi).

Page 91: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

This estimator is not available in practice since

the weights are unknown. However, it imme-

diately suggests an iterative weighted least

squares estimator: HOW, Describe it in de-

tail.

This iterative weighted least squares estima-

tor (IWLSE) requires guessing a model for

the regression E(ε2(α) | A, V ). If this guessed

model is correct, then the resulting IWLSE is

asymptotically e�cient. If the guessed model

is wrong, then the resulting IWLSE is still con-

sistent and asymptotically normal. Therefore

we call this IWLSE estimator a locally e�cient

estimator of α at the guessed model.

Page 92: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

A CAUSAL REGRESSION MODEL

FOR POINT TREATMENT

Let A be a treatment variable with outcome

space A, W be a vector of baseline covariates

not a�ected by A and Y is an outcome vari-

able. De�ne the vector of treatment speci�c

counterfactuals (Ya : a ∈ A). Assume that A

is randomized w.r.t. W :

P (A = a | (Ya : a ∈ A), W ) = P (A = a | W ).

We will denote the latter propensity score with

g(a | W ).

We assume the following causal regression model:

for each a ∈ A

E(Ya | V ) = mβ(a, V ) + εa,

where E(εa | V ) = 0. Such a model is called

a Marginal Structural Model. Note that β is

a causally interpretable parameter.

+ 3

Page 93: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

EXAMPLE: If Y is Bernoulli one could as-

sume:

P (Ya = 1 | V ) = β0+ β1a+ β2V

P (Ya = 1 | V ) = exp(β0+ β1a+ β2V )

P (Ya = 1 | V ) =1

1+ exp(β0+ β1a+ β2V )

In these three models the parameter β1 rep-

resents the (adjusted) Causal Risk Di�erence,

Causal Relative Risk and the Causal Odds Ra-

tio, respectively.

Page 94: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

When does α equal β. In other words, when

do we have E(Y | A = a, V ) = E(Ya | V )?

Answer: if A is randomized w.r.t. V (i.e. A

is completely selected at random within stata

of V ). Formally,

g(a | (Ya : a ∈ A), W ) == g(a | V ).In that case, we have that α1 represents the

causal e�ect of A on Y within strata of V .

This requires adjusting for all potential con-

founders in the regression model. In that case

we have a locally e�cient estimator for α, as

given above, and thus of β (since α = β).

Page 95: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ESTIMATING EQUATIONS FOR β.

Each vector function (A, V ) → h(A,V ) ∈ IRk

implies an unbiased estimating equation for β

given by:

0 =n∑

i=1

h(Ai, Vi)

g(Ai | Wi)εAi

(β).

If

(Condition) for almost every W and each a h(a, V )/

(1)

then one can indeed show

E

{h(A, V )

g(A | W )εA(β)

}= 0.

Give the proof.

Discuss this identi�ability condition. Firstly,

we note that this condition is needed to make

the causal parameter identi�able from the data.

Nonparametric estimation of the G-computation

+ 4

Page 96: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

formula E(Ya | V ) = EE(Y | A = a, W ) |V ) would require that the conditioning event

(A = a, W ) always has positive probability.

Therefore this condition should not come as a

surprise. Before doing an analysis it is advis-

able to plot empirically (Ai, Wi), i = 1, . . . , n,

in order to detect subpopulations W = w for

which g(a | w) = 0 for some a.

The fact that this condition depends on h and

thus on the choice of the estimating equation

is helpful. For example, it might be possible

to set h(A,V ) = h1(A, V )I(A ∈ A1, V ∈ V1)for some subset A1 of all treatment outcomesand some subset V1 of covariate values for

which g(a | W ) > 0 for all a ∈ A1, V ∈ V1.

Consider now the scenario in which subjects

with a certain covariate value W = w always

receive treatment 1. Then it would make

Page 97: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

most sense to delete these subjects from the

sample. One will now do causal inference

for the population of subjects with W 6= w,

which supposedly is the population of inter-

est since doctors already knew the best treat-

ment for subjects with W = w. However, in

case one is truly interested in doing causal

inference for the total population one could

model and estimate E(Y | A, W ) (which thus

involves extrapolating this surface to the re-

gion of A, W 's for which no data is available)

and use the G-computation formula E(Ya |V ) = EE(Y | A = a,W ) | V ). However, keep

in mind that the consistency of the estimate

relies on having guessed what the e�ect of the

other treatments would have been for subjects

with W = w.

Back to the estimating equation: Since

g(a | W ) is an unknown nuisance parameter in

Page 98: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

this estimating equation this insights results

in the following proposed estimators: for each

h(A,V ) and an estimator gn(· | W ) of g(· | W )

we have the following estimating equation:

0 =n∑

i=1

h(Ai, Vi)

gn(Ai | Wi)εAi

(β).

We refer to these type of estimators of β

as the Inverse of Probability of Treatment

Weighted (IPTW) estimator. We propose (Robins)

to choose

h(A,V ) = h∗(A, V ) ≡g(A | V ) d

dβmβ(A, V )

E(ε2A(β) | A, V ).

The advantages of this choice of estimating

equation is:

1) If A is randomized w.r.t. V , then this es-

timating equation corresponds with the es-

timating equation 0 =∑n

i=1 hopt(Ai, Vi)εi(β)

which is in this situtation the optimal esti-

mating equation.

2) In general, g(A | V )/g(A | W ) is much more

Page 99: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

stable than 1/g(A | W ).

To summarize: multiplying with g(A | V ) sta-bilizes the estimating equation in general and

it makes the estimating equation even optimal

when all confounders are contained in V .

Page 100: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

The solution of 0 =∑n

i=1h∗(Ai,Vi)

g(Ai|Wi)εAi

(β) equals

the following weighted least squares estima-

tor:

βn = min−1n∑

i=1

wi

{Yi −mβ(Ai, Vi)

}2,

where

wi =g(Ai | Vi)

g(Ai | Wi)E(ε2(α) | Ai, Vi)

.

This estimator is not available in practice since

g(A | V ), g(A | W ) and E(ε2(β) | Ai, Vi) are

unknown. However, it immediately suggests

an iterative weighted least squares estimator:

HOW, Describe it in detail?

This iterative weighted least squares estima-

tor of β requires a choice of model for g(A |W ), g(A | V ) and for the regression of ε2(β) on

A,V . The model for g(A | W ) implies a model

for g(A | V ): just assume that the regression

parameters in front of the covariates beyond

Page 101: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

V are equal to zero. The consistency of the

estimator βn only relies on consistent estima-

tion of (i.e. the correct model for) g(A | W )

and on the correctness of the marginal struc-

tural model E(Ya | V ) = mβ(a, V ).

Choices of models for the propensity score:

Bernoulli: If A is a bernoulli random variable,

one can select a logistic regression model for

g(A | W ).

Discrete: If A is discrete, then one can use

a multinomial regression:

P (A0 = a0 | W ) =exp(γa0 + γ1W )

1 +∑

a0 6=0 exp(γa0 + γ1W )

P (A0 = 0 | W ) =1

1+∑

a0 6=0 exp(γa0 + γ1W ).

Or Poisson regression:

P (A = a | W ) =λ(W )a

a!exp(−λ(W )),

where we assume some regression model for

Page 102: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

λ(W ) = E(A | W ).

Continuous: If A is a continuous variable,

then

1) assume that E(A | W ) = mγ(A, W ) for

some regression model mγ and that the er-

ror distribution follows a known family (e.g.

normal error disribution) with possibly a few

unknown parameters. The regression estima-

tion is then standard and the residuals can

then be used to �t the parametric error dis-

tribution.

2) One could also use a semiparametric model

such as the Cox-proportional hazards model:

λ(a | W ) = λ0(a) exp(γW ).

Or any other semiparametric model such as

the accelerated failure time model, the very

exible HAAR hazard models of Stone and

Kooperberg among many others.

Page 103: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Important fact: If one estimates g(A | W )

more nonparametrically, then the asymptotic

e�ciency of the estimator βn increases. There-

fore one should choose the dimension of the

model for g(a | W ) as large as sample size al-

lows.

Compare this IPTW-estimator βn with an

estimator based on the G-computation for-

mula.

Page 104: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

PART IV:

MARGINAL STRUCTURAL MODELSnl

FOR TIME-DEPENDENT

TREATMENT

Consider a longitudinal study with data col-

lected in the following temporal ordering:

L0, A0, L1, A1, . . . , LK, AK, Y.

Let V be a subset of the baseline covariates

L0. Let �Ak = (A0, . . . , Ak) be the treatment

or exposure history up till time k and �A =

(A0, . . . , Ak) is the treatment history up till

end of follow up. Similarly, we de�ne �Lk and

�L. For convenience, we will now and then use

the notation LK+1 = Y .

Let Y�a be the counterfactual value of Y that

would have been observed had the subject re-

ceived treatment history �a = (a0, . . . , aK). We

+ 5

Page 105: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

can also de�ne counterfactuals L�a which de-

notes the process L that would have been ob-

served if the subject had received treatment

�a. The Y�a, �a ∈ A, are the counterfactuals of

interest.

We will assume that treatment is sequentially

randomized: for each possible treatment regime

�a (consistent with the observed history)

A(k) ⊥ Y�a | �A(k − 1), �L(k).

In other words, for each k

g(a(k) | (Y�a : �a ∈ A), �A(k − 1), �L(k))

= g(A(k) | �A(k − 1), �L(k)).

We de�ne:

g(�a | X) =K∏

k=0

g(a(k) | �A(k − 1), �L(k)),

which one can think of as the conditional prob-

ability on receiving treatment regime �a, given

Page 106: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

the full data X = (Y�a, L�a : �a ∈ A).

By the curse of dimensionality it will not be

possible (even when g(�a | X) would be known)

to estimate treatment speci�c distributions of

Y�a nonparametrically. Therefore we will need

to assume a MSM such as:

E(Y�a | V ) = mβ(V, sum(�a)),

(e.g. β0 + β1sum(�a)) where sum(�a) is some

summary measure of �a which is believed to

have an e�ect on the conditional mean of Y�a,

within strata of V .

For example, if a(k) is the dose of a particular

treatment received at time k, then sum(�a) =∑Kk=0 ak is the cumulative dose through end

of follow up for a subject receiving treatment

regime �a.

Page 107: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

The causal parameter β is of important pol-

icy interest: e.g Y = 1 when subject has de-

tectable HIV-serum in blood at end of follow

up and a(j) = 1 if the subject received AZT

at time j.

Page 108: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

IPTW-ESTIMATOR IN MSM MODEL

FOR ONE SINGLE OUTCOME

Consider the regression model:

E(Y | �A, V ) = mβ(V, sum( �A)).

The estimating equations for this regression

model are:

{h(sum( �A), V )ε(β) : h}.The estimating equations for the correspond-

ing MSM model E(Y�a | V ) = mβ(V, sum(�a))

are given by:{h(sum( �A), V )

g( �A | X)ε(β) : h

}.

These estimating equations are unbiased if

h(sum�a, V )/g(�a | X) > 0 for all �a.

Remark: If a subject's history up till point t

is such that certain treatments a(t) have zero

+ 6

Page 109: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

probability to be assigned, then one should ar-

ti�cially censor the subject at t. In this way

one can arti�cially arrange the identi�ability

assumption to be true.

De�ne

SW (K) =g( �A | V )g( �A | X)

=

∏Kj=0 g(A(j) | �A(j − 1), V )∏K

j=0 g(A(j) | �A(j − 1), �L(j)).

In order to have a stable estimating equations

which is optimal in case V contains all con-

founders, we propose as estimating equation:

0 =n∑

i=1

SWi(K)hopt(sum( �Ai), Vi)ε �Ai(β),

where

hopt(sum( �A), V ) =d/dβmβ(sum( �A), V )

E(ε(β)2 | �A, V ).

This estimating equation corresponds with �t-

Page 110: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

ting the regression model

E(Y | �A, V ) = mβ(V, sum( �A))

using weights SWi(K) for subject i, i = 1, . . . , n.

We refer to these weighted estimators as IPTWE,

abbreviating \Inverse Probability of Treatment

Weighted Estimator".

Page 111: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Recall that adjusting for time-dependent con-

founders (thus a variable which is a�ected by

past treatment) in the regression model will

yield a biased estimate of the treatment ef-

fect: see example page 14, Robins, Hernan,

Brumback (1998).

Page 112: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ESTIMATION OF SUBJECT

SPECIFIC WEIGHTS

Consider the case that A(k) is a 1-0 variable.

Then we can estimate P (Ak = 1 | �Ak−1 =

�ak−1, �Lk = �lk) using a pooled logistic regres-

sion model that treats each person-day as one

observation, with covariates extracted from

past treatment and covariate history. This

yields then an estimate of g( �A | X). Note

that this estimate is a product over time of

terms (1− Pk)1−A(k)P

A(k)k .

Similarly, one can estimate g( �A | V ) by using

a pooled logistic regression model that treats

each person-day as one observation, with co-

variate V and covariates extracted from past

treatment: thus not adjusting for �L(k).

Give example: formula (15), (16) and (17)

of Robins, Hernan, Brumback (1998).

+ 7

Page 113: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CENSORING BY LOSS TO FOLLOW UP

Let Ck = 1 if the subject was lost to follow-up

by day k and Ck = 0 otherwise. We assume

that once a subject is lost to follow up, the

subject does not reenter the study.

No new ideas are required to account for cen-

soring, by viewing censoring as just another

time-varying treatment and restricting the es-

timator above to the uncensored subjects.

The data on the uncensored subjects is now:

L0, (C0 = 0, A0), . . . , LK, (CK = 0, AK), Y, CK+1 = 0.

Let �a′ = ((c0, a0), (c1, a1), . . . , (cK, aK), cK+1)

represent a treatment history: at time j the

subject receives joint treatment a′j = (cj, aj)

+ 8

Page 114: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

(we de�ne a′K+1 = cK+1). As above, we de-

�ne the counterfactuals Y�a′. The only coun-

terfactuals of interest to us are Y�a′ for �a′ with

c0 = . . . = cK+1 = 0. Therefore we only

pose a MSM model for these counterfactu-

als. Let Y�a be the counterfactual Y�a′ withreal treatment components aj and cj = 0,

j = 0, . . . , K+1. We assume the MSM model

for Y�a:

E(Y�a | V ) = mβ(V, sum(�a)).

Page 115: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

IPTCW-ESTIMATOR IN MSM MODEL

FOR ONE SINGLE OUTCOME

Let � be the indicator of being uncensored:

i.e. � = 1 if and only if CK+1 = 0. The esti-

mating equations for the MSM model E(Y�a |V ) = mβ(V, sum(�a)) are given by:{

h(sum( �A), V )

g( �A′ | X)ε(β)� : h

}.

De�ne

SW ′(K + 1) =g( �A′ | V )g( �A′ | X)

=

∏j=0K+1 g(A′(j) | �A′(j − 1), V )∏

j=0K+1 g(A′(j) | �A′(j − 1), �L(j)).

Since a′(j) = (c(j) = 0, a(j)) we can write

g(a′(j) | �a′(j − 1), �L(j))

= g(c(j) = 0 | �a(j − 1),�c(j − 1) = 0, �L(j))

×g(a(j) | �a(j − 1),�c(j) = 0, �L(j))

+ 9

Page 116: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

and

g(a′(K + 1) | �a′(K), �L(K +1))

= g(c(K + 1) = 0 | �a(K),�c(K) = 0, �L(K +1)).

Therefore

SW ′(K + 1) = SWc(K + 1)SW (K),

where

SW (K) =

∏Kj=0 g(A(j) | �A(j − 1), �C(j) = 0, V )

∏K+1j=0 g(A(j) | �A(j − 1), �C(j) = 0, �L(j))

and SWc(K + 1) is given by:∏K+1j=0 g(C(j) = 0 | �A(j − 1), �C(j − 1) = 0, V )

∏K+1j=0 g(C(j) = 0 | �A(j − 1), �C(j − 1) = 0, �L(j))

.

Page 117: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

In order to have stable estimating equations

which is optimal in case V contains all con-

founders and nobody is censored, we propose

as estimating equation:

0 =n∑

i=1

SW ′i(K + 1)hopt(sum( �Ai), Vi)ε �Ai

(β),

where

hopt(sum( �A), V ) =d/dβmβ(sum( �A), V )

E(ε(β)2 | �A, V ).

This estimating equation corresponds with �t-

ting the regression model E(Y | �A, V ) = mβ(V, sum( �A

with using weights SW ′i(K + 1) for subject i,

i = 1, . . . , n. We refer to these weighted es-

timators as \Inverse of Probability of Treat-

ment and Censoring Weighted Estimator".

Explain that these estimators are the same

as solving the estimating equation we used

without censoring with �/P (� = 1 | X, A).

Page 118: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ESTIMATION OF SUBJECT

SPECIFIC WEIGHTS

Again, we can estimate P (Ck = 0 | �Ck−1 =

0, �A(k−1), �Lk) and P (Ck = 0 | �Ck−1 = 0, �A(k−1), V ) using a pooled logistic regression model

that treats each person-day as one observa-

tion. Thus by �tting four logistic regression

models to pooled samples one obtains an es-

timate of SW ′(K +1).

+ 10

Page 119: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

PART V:

MARGINAL STRUCTURAL MODELS

FOR TIME-DEPENDENT

TREATMENT

IN SURVIVAL ANALYSIS

+ 11

Page 120: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

DATA

Let A(j) be treatment the subject received

at time j. Let L(j) be time-dependent co-

variates collected on the subject at time j,

where L(j) occurs right before the treatment

assignment A(j). Let the outcome of inter-

est be the survival time T of the subject. A

particular application one can keep in mind is

a longitudinal study in which a HIV-infected

subject is followed up till death T , A(t) is a

dichotomous variable indicating whether a pa-

tient is on prophylaxis treatment at day t, L(t)

is a vector of measured risk factors for survival

such as CD4 count, white blodd cell count and

number of Pneumonia (PCP) bouts.

The observed data on a subject is thus:

(T, �A(T), �L(T)).

+ 12

Page 121: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

We are concerned with estimation of causal

e�ects of �A on survival T . A useful alternative

way of representing this data structure is to

de�ne Y (j) as the indicator of failure at time

j and de�ne the data as:

( �A(T), �Y (T), �L(T)).

Let V be a subset of the baseline covariates

L(0). Let T�a be the counterfactual value of

T that would have been observed had the sub-

ject received treatment history �a = (a0, . . . , aK).

We have T�a = T�a(T ),0. We can also de�ne

counterfactuals L�a which denotes the process

L that would have been observed if the sub-

ject had received treatment �a. Again, L�a(t) =

L�a(t),0(t). The Y�a, �a ∈ A, are the counterfac-tuals of interest.

We will assume that treatment is sequentially

Page 122: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

randomized: for each possible treatment regime

�a (consistent with the observed history)

A(k) ⊥ Y�a | �A(k − 1), �L(k).

In other words, for each k

g(a(k) | (Y�a : �a ∈ A), �A(k − 1), �L(k))

= g(A(k) | �A(k − 1), �L(k)).

We de�ne:

g(�a | X) =K∏

k=0

g(a(k) | �A(k − 1), �L(k)),

which one can think of as the conditional prob-

ability on receiving treatment regime �a, given

the full data X = (Y�a, L�a : �a ∈ A).

Page 123: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

MARGINAL STRUCTURAL COX MODEL

In the absence of time-dependent confound-

ing one could use a time-dependent Cox-proportional

hazards model:

λT (t | �A(t), V ) = λ0(t) exp(γ1A(t) + γ>2 V ).

Here λT (t | �A(t), V ) is the hazard of death at

time t from start of follow up conditional on

treatment history �A(t) and pretreatment co-

variates V , and λ0(t) is an unspeci�ed base-

line hazard function. For example, V could

include the log of baseline CD4-count, log of

baseline white blood count.

In the absence of time-dependent confound-

ing one can then estimate γ with the solu-

tion of the partial likelihood score equation

for γ. Since the partial likelihood is a prod-

uct over time from t = 0 till ∞ the score

+ 13

Page 124: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

equation is an sum over time. So let's repre-

sent the score equation (for one subject) as∑t U( �A(t), �Y (t), V | γ).

The corresponding marginal structural Cox-

proportional hazards model is given by:

λT�a(t | V ) = λ0(t) exp(β1a(t) + β2V ),

where λT�a(t | V ) is the hazard of death at t

among subjects with pretreatment covariates

V had, contrary to the fact, all subjects fol-

lowed treatment regime �a.

De�ne

SW (t) =g( �A(t) | V )g( �A(t) | X)

=

∏tj=0 g(A(j) | �A(j − 1), V )∏K

j=0 g(A(j) | �A(j − 1), �L(j)).

In order to have a stable estimating equation

which is optimal in case we do not have time-

Page 125: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

dependent confounding, we propose as esti-

mating equation:

0 =n∑

i=1

∑t

SWi(t)U( �Ai(t), �Yi(t), Vi | γ).

This corresponds with �tting the time-dependent

Cox model with each subjects data line (Ai(t), Yi(t), L

weighted with Wi(t) = SWi(t) with t running

from 0 till Ti.

Page 126: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

MARGINAL STRUCTURAL lOGISTIC

REGRESSION MODEL

If time is discrete, i.e. many subjects die at

the same time, then the Cox-model is not ap-

propriate, but one should use a discrete sur-

vival time model.

In this case one could model the discrete haz-

ard with a logistic regression model:

logit(P (Y (t) = 1 | Y (t− 1) = 0, �A(t− 1), V )

= β0(t) + β1A(t− 1) + β2V,

where β0(t) is an unspeci�ed baseline func-

tion. If the time unit becomes �ner and �ner,

then this model approximates the Cox pro-

portional hazards model with exp(β0(t)) rep-

resenting the cumulative baseline hazard.

+ 14

Page 127: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

This model can be �t with pooled logistic re-

gression treating each person day as an ob-

servation: this also provides the correct con-

�dence intervals.

The corresponding marginal structural model

is given by:

logit(P (Y�a(t) = 1 | Y�a(t− 1) = 0, V )

= β0(t) + β1a(t− 1) + β2V.

The causal parameters β can be �t with weighted

pooled logistic regression treating each person

day t as an observation with weights SW (t).

To obtain conservative con�dence intervals

one needs to view the data as repeated mea-

sures and therefore one should �t the model

with a generalized estimating equations pro-

gram (e.g. option 'repeated' in SAS Proc

Genmod).

Page 128: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CENSORING BY LOSS TO FOLLOW UP

Let Ck = 1 if the subject was lost to follow-up

by day k and Ck = 0 otherwise. We assume

that once a subject is lost to follow up, the

subject does not reenter the study.

No new ideas are required to account for cen-

soring, by viewing censoring as just another

time-varying treatment and restricting the es-

timator above to the uncensored subjects. At

time j the subject receives joint treatment

a′j = (cj, aj).

As above, we de�ne the counterfactuals Y�a′.The only counterfactuals of interest to us are

Y�a′ for �a′ with c0 = . . . = cK+1 = 0. Therefore

we only pose the logistic regression or Cox-

proportional hazards MSM model for these

counterfactuals.

+ 15

Page 129: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Let � be the indicator of being uncensored:

i.e. � = 1 if and only if CK+1 = 0. De�ne

SW ′(t) =g( �A′(t) | V )g( �A′(t) | X)

=

∏tj=0 g(A′(j) | �A′(j − 1), V )∏t

j=0 g(A′(j) | �A′(j − 1), �L(j)).

Since a′(j) = (c(j) = 0, a(j)) we can write

g(a′(j) | �a′(j − 1), �L(j))

= g(c(j) = 0 | �a(j − 1),�c(j − 1) = 0, �L(j))

×g(a(j) | �a(j − 1),�c(j) = 0, �L(j)).

Therefore

SW ′(t) = SWc(t)SW (t),

where

SW (t) =

∏tj=0 g(A(j) | �A(j − 1), �C(j) = 0, V )∏t

j=0 g(A(j) | �A(j − 1), �C(j) = 0, �L(j))

Page 130: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

and SWc(t) is given by:∏tj=0 g(C(j) = 0 | �A(j − 1), �C(j − 1) = 0, V )∏t

j=0 g(C(j) = 0 | �A(j − 1), �C(j − 1) = 0, �L(j)).

One estimates β with weighted pooled logistic

regression treating each person day t as an

observation with weights �SW ′(t).

Page 131: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

INSTRUMENTAL VARIABLES IN

REGRESSION

Suppose that Y = m(X | β)+ ε, where Eε = 0

but E(ε | X) 6= 0. For example, X might

be the actual treatment taken by the subject,

Y is the outcome of interest and X might

be based on unobserved variables related to

the error. Then the standard (naive) esti-

mating equation h(X)ε(β) might result in a

biased estimator. Let Z be a variable satis-

fying E(ε(β) | Z) = E(ε(β)); for example, Z

is independent of ε(β). In our example, one

could think of Z being a randomly assigned

treatment arm. Then one can use as esti-

mating equation

g(Z)ε(β). (2)

If the matrix E(g(Z)d

dβε(β)) is invertible, then

under standard regularity conditions, the cor-

responding estimator is asymptotically linear

+ 1

Page 132: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

with in uence curve

{Eg(Z)d/dβm(X | β)}−1g(Z)ε(β).This invertibility condition requires that

E(g(Z)d/dβm(X | β)) 6= Eg(Z)Ed/dβm(X |β). In other words, this estimating equation

can only be informative if Z is related to X.

The random variable Z is often referred to

as an instrumental variable. Thus in regres-

sion problems where one expects dependence

between the residual and X one can salvage

estimation by �nding a variable Z which is un-

related to the residual but related to X.

Page 133: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL INFERENCE WITH

NON-COMPLIANCE

IN POINT TREATMENT STUDIES

Let R be the treatment assigned to the sub-

ject and we assume that R is completely ran-

domized. Let A be the treatment the sub-

ject actually uses. Let Y be the outcome

of interest and suppose that we also observe

some covariates W . Thus the observed data is

(Y, R,A, W ). By non-compliance A can be dif-

ferent from R and A can be confounded by un-

measured confounders. Let X = ((Ya : a), W )

be the treatment speci�c counterfactual out-

comes and the covariate vector.

Consider the marginal structural model

Ya = β0+ β1a+ ε, where E(ε) = 0.

Note that ε = Y0− β0 so that β0 = EY0. This

marginal structural model is equivalent with

+ 2

Page 134: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

E(Ya − Y0) = β1a.

It also corresponds with the following observed

data regression model

Y = YA = β0+ β1A+ ε, where Eε(β) = 0.

Thus estimation of β1, β2 corresponds with

linear regression of Y on A but with an er-

ror term which depends on A since the actual

selected treatment A might have been based

on Y0.

This suggests to use the instrumental vari-

able method to estimate (β1, β2) using R as

instrumental variable. Notice that indeed R

is independent of ε and (strongly) related to

A. Thus our estimating equations are of the

type: for any given φ

φ(R){Y − β0 − β1A}.

Page 135: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

The unbiasedness of this estimating equation

follows from the fact that at the true β R

is independent of ε(β) = Y − β0 − β1A and

that Eε(β) = 0. Alternatively, we could use

as estimating equation:

{φ(R)−Eφ(R)}{Y − β1A}.If R has only two outcomes 0,1, then there

exists only one estimating equation (i.e. φ)

and therefore one can only identify β1. In

general, the dimension of our causal model

parameter β needs to be restricted by the ac-

tual number of estimating equations we can

come up with. If R has k possible outcomes,

then we can come up k − 1 choices of φ . If

covariates are available, then we have k − 1

estimating equations for each strata identi-

�ed by e.g. V = v. By assuming that the

causal model does not heavily depend on the

strate V = v, e.g. E(Ya−Y0 | V ) = β1a+β2V ,

Page 136: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

this approach makes it possible to model the

e�ect of a more exible.

Page 137: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL EFFECT AMONG COMPLIERS

Assume the following model:

E(Ya − Y0 | R, A = a) = β0a+ β1R.

Note that the unknown parameter β = (β0, β1)

de�nes, in particular, the causal e�ect of treat-

ment A among the compliers. Let Y0(β) =

Y − β0A− β1R which represents the outcome

Y blipped down to Y0. The instrumental vari-

able method suggests the following estimating

equation for β:

(φ(R)−Eφ(R))Y0(β). (3)

Since E(Y0(β) | R, A = a) = E(Y0 | R, A = a)

it follows that

E{(φ(R)− Eφ(R))Y0(β)} = E{(φ(R)− Eφ(R))Y0}= = 0

since E(φ(R) | Y0) = Eφ(R).

+ 3

Page 138: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

(We used that YRA = YA)

Page 139: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

CAUSAL INFERENCE WITH

NON-COMPLIANCE

IN LONGITUDINAL STUDIES

Data: On each subject we collect the follow-

ing data over time

R, L0, A0, L1, A1, . . . , LK, AK, Y,

where (Lj, Aj) represents covariates and treat-

ment at time j, j = 0, . . . , K, and R = A−1 is

the randomly assigned treatment arm. We

model the so called blip function conditional

on the past:

E(Y �Aj,0−Y �Aj−1,0 | �Aj = �aj, �Lj = �lj) = βj(�aj,�lj | β),

where the blip function βj is parametrized by

a �nite dimensional parameter vector β which

is common to each βj, j = 1, . . . , K. In words,

this blip function is the expected value of the

di�erence of two counterfactuals only di�er-

ing by one blip in their treatment, given the

+ 4

Page 140: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

observed past of the subject.

Consider now the completely blipped down

version of Y

Y0(β) = Y �AK−

K∑l=1

βl( �Al, �Ll).

At the true β E(Y0(β) | R) = EY0.

Using R as an instrumental variable suggests

the following estimating equations: for any

given φ

{φ(R)−Eφ(R)}{Y0(β)}.If R has only two outcomes 0,1, then there

exists only one estimating equation (i.e. φ)

and therefore one can only identify β1. In

general, the dimension of our causal model

parameter β needs to be restricted by the ac-

tual number of estimating equations we can

come up with. If R has k possible outcomes,

Page 141: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

then we can come up k − 1 choices of φ . If

covariates are available, then we have k − 1

estimating equations for each strata identi-

�ed by e.g. V = v. By assuming that the

causal model does not heavily depend on the

strate V = v, e.g. E(Ya−Y0 | V ) = β1a+β2V ,

this approach makes it possible to model the

e�ect of a more exible.

Page 142: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

STRUCTURAL NESTED MEAN MODELS

IN LONGITUDINAL STUDIES

Data: On each subject we collect the follow-

ing data over time

L0, A0, L1, A1, . . . , LK, AK, Y,

where (Lj, Aj) represents covariates and treat-

ment, respectively, at time j, j = 0, . . . , K,

and Y is the outcome of interest. Let �Aj =

(A0, . . . , Aj) and �Lj = (L0, . . . , Lj), j = 0, . . . , K.

For each possible treatment regime �a = (a0, . . . , aK)

we de�ne (Y�a, �L�a as the counterfactual out-

come of (Y, �L) if, possibly contrary to the

fact, the subject would have received treat-

ment regime �a. Thus (Y, �L) = (Y �A, �L �A).

We assume the following model. Firstly, we

assume the sequential randomization assump-

+ 5

Page 143: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

tion which states that Aj ⊥ {Y�a, �L�a : �a}, giventhe observed past �Aj−1, �Lj, where �a ranges

over treatment regimes with �aj−1 = �Aj−1. Inaddition, we model the so called blip function

conditional on the past:

E(Y �Aj,0−Y �Aj−1,0 | �Aj = �aj, �Lj = �lj) = βj(�aj,�lj | β),

where the blip function βj is parametrized by

a �nite dimensional parameter vector β which

is common to each βj, j = 1, . . . , K. In words,

this blip function is the expected value of the

di�erence of two counterfactuals only di�er-

ing by one blip in their treatment, given the

observed past.

The idea above of using an instrumental vari-

able to obtain an unbiased estimating equa-

tion can be generalized to construct unbiased

estimating equations of the blip function in

structural nested mean models. We view the

Page 144: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

total data generating experiment as a sequen-

tial experiment over time, where at time j one

conditions on the observed past �A(j−1), �L(j).Experiment j corresponds with drawing the

data after Aj−1 and ending with generating

Aj, where we know that Aj is assigned com-

pletely at random, given the past. For each j

one constructs a residual which has mean zero

conditonal on the past and is unrelated to Aj

which will play the role of the instrumental

variable.

Consider the blipped down version of Y

Yj−1(β) = Y �AK−

K∑l=j

βl( �Al, �Ll).

De�ne the residual:

εj−1(β) ≡ Yj−1(β)− E(Yj−1(β) | �Aj−1, �Lj),

which has expectation zero, given �Aj−1, �Lj.

Page 145: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

Notice that Aj is related to the covariates∑Kl=j βl( �Al, �Ll) and using 1) that Yj−1(β) rep-

resents the counterfactual Y �Aj−1,0 and 2) the

sequential randomization assumption we will

be able to show that

E(εj−1(β) | �Aj−1, Aj, �Lj) = E(εj−1(β) | �Aj−1, �Lj).

(4)

Thus Aj is unrelated (in the expectation sense)

to the residual, given the observed past. This

proves that we can use Aj as instrumental

variable and thus use as estimating equation:

for each function g

εj−1(β)g( �Aj, �Lj) = 0, j = 1, . . . , K.

To see that the estimating equation is un-

biased just condition on �Aj, �Lj and use that

E(Yj−1(β) | �Aj, �Lj) = E(Yj−1(β) | �Aj−1, �Lj).

A natural way of combining these K instru-

mental estimating equations corresponding with

Page 146: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

experiment j = 1, . . . , K to one estimating

equation for β is to use as estimating equation

K∑j=1

εj−1(β)gj( �Aj, �Lj) = 0.

We can extend this class of estimating equa-

tions as follows:

K∑j=1

{Yj−1(β)−�( �Aj−1, �Lj)

}{g( �Aj, �Lj)−E(g( �Aj, �Lj) | �Aj−1, �Lj)

},

where φ and g are user supplied.

We will now show that indeed

E(Yj−1(β) | �Aj−1, �Lj, Aj) = E(Yj−1(β) | �Aj−1, �Lj).

Page 147: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

We have

E

Y �A − Y �Aj−1,0 − β

k∑l=j

Al | �Aj, �Lj

=∑k−j

m=0E(Y �Am+j,0− Y �Am+j−1,0 − β1Am+j | �Aj, �Lj)

=k−j∑

m=0

E

{E

(Y �Am+j,0

− Y �Am+j−1,0 − β1Am+j |

�Am+j, �Lm+j

)| �Aj, �Lj

}

= 0.

Thus

E(Yj−1(β) | �Aj, �Lj) = E(Y �Aj−1,0 | �Aj, �Lj).

By the sequential randomization assumption

the latter equals E(Y �Aj−1,0 | �Aj−1, �Lj).

Page 148: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

ESTIMATING COUNTERFACTUAL

EXPECTATIONS

Above we provided an estimating equation for

the blip function parameter β. Suppose now

that we are concerned with estimating E(Y�a)

for a given treatment regime �a = (a0, . . . , aK).

In order to derive an estimator of this param-

eter we will do as if β, i.e. the set of blip

functions βj, is known. The actual proposed

estimator of E(Y�a) is obtained by substituting

an estimate for β.

For each subject construct the following vari-

able

Y0(β) = Y �A −K∑

l=1

βl( �Al, �Ll).

The variable Y0(β) represents a substitute for

the variable Y0 one would have seen if the

subject had never been treated. As above

+ 6

Page 149: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

one can show that EY0(β) = EY0, where Y0 is

the counterfactual outcome Y under regime

�a = 0.

Consider now the random variable:

Y�a(β) ≡ Y0(β) +K∑

l=1

βl(�al, �Ll,�a),

where �Ll,�a is the counterfactual of (L1, . . . , Ll)

corresponding with treatment regime (a0, . . . , al).

Note that this variable is random through Y0(β)

and �LK,�a, but �Al is �xed at �al. We note that:

E

Y0(β) +

K∑l=1

βl(�al, �Ll,�a)

= EY0+K∑

l=1

E�Ll,�aE(Y�al,0 − Y�al−1,0 | �Al = �al, �Ll,�a)

= EY0+ EY�a − EY0 = EY�a.

Thus the random variable Y�a(β) has the same

expectation as the treatment speci�c coun-

Page 150: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

terfactual Y�a. Thus it remains to understand

how to estimate EY�a(β).

Note that the expectation of βl( �Al, �Ll) is taken

in the world where everybody get assigned

treatment �A = �a, which comes down to in-

tegrating w.r.t. the joint distribution of the

counterfactuals of L0, L1a1, L2a1a2, . . . , Ll,�aland

setting �AK = �aK. This joint distribution is

obtained with the general G-computation for-

mula which we will give now.

First write down the density representation for

L0, A0, L1, A1, . . . , Ll, Al:

f(L0)f(A0 | L0)f(L1 | �A0, L0)f(A1 | �A0, �L1)

. . . f(Ll | �Ll−1, �Al−1)f(Al | �Ll, �Al−1).

Replacing f(Aj | �Aj−1, �Lj) by a degenerate

distribution at Aj = aj, j = 0, . . . , l, results

Page 151: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

in the wished joint density P (L0 = s0, L1a1 =

s1, L2a1a2 = s2, . . . , Ll,�al= sl) given by:

l∏j=0

P (Lj = sj | �Aj−1 = �aj−1, �Lj−1 = sj−1).

The latter formula is referred to as the G-

computation formula and indeed equals the

counterfactual density under the sequential

randomization assumption.

We conclude that we have the following for-

mula for EY�a:

EY�a = EY0(β) +K∑

l=1

∫s1,...,sl

βl(�al,�sl)

l∏j=0

P (Lj = sj | �Aj−1 = �aj−1, �Lj−1 = sj−1)

This formula expresses the counterfactual ex-

pectation EY�a in terms of observed data distri-

butions and the blip function. Consequently,

Page 152: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

we can use this formula to estimate EY�a. Be-

yond estimation of the blip function it requires

estimation of the conditional distribution of

Lj, given the past.

For testing the presence of a treatment ef-

fect one is only concerned with estimation of

the blip function itself which does not require

modelling of covariate distributions. If one

uses the formula to estimate EY�a for various

�a, then these estimates are protected agains

misspeci�cation of the covariate distributions

under the null-hypothesis of no-treatment ef-

fect.

Page 153: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

+ +

EXTENSION TO DYNAMIC REGIMES

For a given set of rules �d = (d1(·), . . . , dK(·))let Y�d be the counterfactual outcome of Y if

one follows the rules Aj = dj( �Aj−1, �Lj). Sup-

pose we want to estimate EY�d.

We already provided estimators for the blip

function and we can also still de�ne Y0(β) as

above. De�ne

Y�d(β) ≡ Y0(β) +K∑

l=0

βl( �Al, �Ll,�dl),

where ( �Al, �Ll,�dl) follows the counterfactual dis-

tribution one would observe in the hypothet-

ical world where everybody follows the dy-

namic treatment regime �d. As above one can

show that the expectation of Y�d(β) equals the

expectation of Y�d. Thus it remains to esti-

mate EY�d(β).

+ 7

Page 154: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

This counterfactual distribution of ( �Al, �Ll,�dl)

is obtained with the general G-computation

formula. First write down the density repre-

sentation for the data L0, A0, L1, A1, . . . , Ll, Al:

f(L0)f(A0 | L0)f(L1 | �A0, L0)f(A1 | �A0, �L1) . . . f(Ll | LReplacing f(Aj | �Aj−1 = �aj−1, �Lj = �sj) by

a degenerate distribution at dj(�aj−1,�sj), j =

0, . . . , l, results in the wished joint density P (L0 =

s0, L1d1 = s1, L2d1d2 = s2, . . . , Ll,�dl= sl) given

by:

l∏j=0

P (Lj = sj | �Aj−1 = dj(�aj−1, �Lj), �Lj−1 = �sj−1).

The latter formula is referred to as the G-

computation formula and indeed equals the

counterfactual density under the sequential

randomization assumption.

We conclude that we have the following for-

Page 155: INFERENCE - Mark van der Laan · Inference (Robins). P ap ers: 1) \Causal diagrams in epidemiologic resea rch" b y Greenland, P ea rl and Robins (1998). 2) \Causal diagrams in empirical

mula for EY�d:

EY�d = EY0(β) +K∑

l=1

∫s1,...,sl

βl(�al,�sl)

l∏j=0

P (Lj = sj | �Aj−1 = dj(�aj−1,�sj), �Lj−1 = �sj−1)

Given estimates of the conditional distribu-

tions of Lj, given the past, for j = 0, . . . , K,

given β and thus Y0(β) one can evaluate this

multivariate integral by simply simulating a

large number of the variables Y�d(β). This

avoids the need of numerical integration.


Recommended