For the pdf slides, click here
Introduction to Instrumental Variables
Unmeasured confounding
- Suppose there are unobserved variables that affect both and , then is an unmeasured confounding
This violates ignorability assumption
Since we cannot control for the unobserved confounders and average over its distribution, if using matching or IPTW methods, the estimates of causal effects is biased
Solution: instrumental variables
Instrumental variables
- Instrumental variables (IV): an alternative causal inference method that does not rely on the ignorability assumption
is an IV
- It affects treatment , but does not directly affect the outcome
- We can think of as encouragement (of treatement)
Example of an encouragement design
- : smoking during pregnancy (yes/no)
- : birth weight
: mother’s age, weight, etc
- Concern: there could be unmeasured confounders
- Challenge: it is not ethical to randomly assign smoking
: randomized to either received encouragement to stop smoking () or receive usual care ()
- Causal effect of encouragement, also called intent-to-treat (ITT) effect, may be of some interest
- Focus of IV methods is still causal effect of the treatment
IV is randomized
Like the previous smoking example, sometimes IV is randomly assigned as part of the study
Other times IV is believed to be randomized in nature (natural experiment). For example,
- Mendelian randomization (?)
- Quarter of birth
- Geographic distance to specialty care provider
Randomized trials with noncompliance
Randomized trials with noncompliance
- Setup
- : randomization to treatment (1 treatment, 0 control)
- : treatment received, binary (1 treatment, 0 control)
- : outcome
- Due to noncompliance, not everyone assigned treatment will actually receive the treatment, and vice verse ()
- There can be confounding , like common causes affecting both treatment received and the outcome
- It may be reasonable to assume that does not directly affect
Causal effect of assignment on receipt
Observed data:
Each subject has two potential values of treatment
- : value of treatment if randomized to treatment
- : value of treatment if randomized to control
- Average causal effect of treatment assignment on treatment received
- If perfect compliance, this would be
- By randomization and consistency, this is estimable from the observed data
Causal effect of assignment on outcome
Average causal effect of treatment assignment on the outcome
- This is intention-to-treat effect
- If perfect compliance, this would be equal to the causal effect of treatment received
- By randomization and consistency, this is estimable from the observed data
Compliance classes
Subpopulations based on potential treatment
Label | ||
---|---|---|
0 | 0 | Never-takers |
0 | 1 | Compliers |
1 | 0 | Defiers |
0 | 0 | Always-takers |
- For never-takers and always-takers,
- Encouragement does not work
- Due to no variation in treatment received, we cannot learn anything about the effect of treatment in these two subpopulations
- For compliers, treatment received is randomized
- For defiers, treatment received is also randomized, but in the opposite way
Local average treatment effect
- We will focus on a local average treatment effect, i.e., the complier average causal effect (CACE)
- “Local”: this is a causal effect in a subpopulation
- No inference about defiers, always-takers, or never-takers
Instrumental variable assumptions
IV assumption 1: exclusion restriction
- is associated with the treatment
affects the outcome only through its effect on treatment
- cannot directly, or indirectly though its effect on , affect
Is the exclusion restriction assumption realistic?
If is a random treatment assignment, then the exclusion restriction assumption is met
- It should affect treatment received
- It should not affect the outcome or unmeasured confounders
However, it the subjects or clinicians are not blinded, knowledge of what they are assigned to could affect or
We need to examine the exclusion restriction assumption carefully for any given study
IV assumption 2: monotonicity
Monotonicity assumption: there are no defiers
- No one consistently does the opposite of what they are told
- Probability of treatment should increase with more encouragement
With monotonicity,
Class | ||||
---|---|---|---|---|
0 | 0 | 0 | ? | Never-takers or compliers |
0 | 1 | 1 | 1 | Always-takers |
1 | 0 | 0 | 0 | Never-takers |
1 | 1 | ? | 1 | Always-takers or compliers |
Estimate Causal Effects with Instrumental Variables
Estimate CACE: 1. rewrite the ITT effect
Due to randomization, we can identify the ITT effect
Expand the first term in the above ITT effect
- Note 1: among always takers and never takes, does nothing
- Note 2: by randomization,
Estimate CACE: 1. rewrite the ITT effect, cont.
Therefore, the first term in the ITT effect is
Similarly, the second term is
Their difference is
Estimate CACE: 2. compute proportion of compliers
Thus, the relationship between CACE and ITT effect is
To compute , note that
- : proportion of always takers plus compliers
- : proportion of always takers
Thus the difference is
Estimate CACE: final formula
Numerator: ITT, causal effect of treatment assignment on the outcome
- Denominator: causal effect of treatment assignment on the treatment received
- Denominator is between 0 and 1. Thus, CACE ITT
- ITT is underestimate of CACE, because some people assigned to treatment did not take it
If perfect compliance, CACE ITT
IVs in observational studies
IVs in observational studies
IVs can also be used in observational (non-randomized) studies
- : instrument
- : treatment
- : outcome
- : covariates
- can be thought of as encouragement
- If binary, just encouragement yes or no
- If continuous, a ‘dose’ of encouragement
can be thought of as randomizers in natural experiments
- The key challenge: think of a variable that affects only through
- Only the assumption affecting can be checked with data
- The validity of the exclusion restriction assumption rely on subject matter knowledge
Natural experiment example 1: calendar time as IV
Rationale: sometimes treatment preferences change over a short period of time
: drug A vs drug B
: early time period (drug A is encouraged) vs late time period (drug B is encouraged)
: BMI
Natural experiment example 2: distance as IV
Rationale: shorter distance to NICU is an encouragement
: delivery at high level NICU vs regular hospital
: differential travel time from nearest high level NICU to nearest regular hospital
: mortality
More examples of natural experiments
Mendelian randomization: some genetic variant is associate with some behavior (e.g., alcohol use) but is assumed to not be associated with outcome of interest
Provider preference: use treatment prescribed to previous patients as an IV for current patient
Quarter of birth: to study causal effect of years in school on income
Two stage least squares
Ordinary least squares (OLS) fails if there is confounding
- In OLS, one important assumption is that the covariate is independent with residuals
However, if there is confounding, and are correlated. So OLS fails.
Two stage least squares can estimate causal effect in the instrumental variables (IV) setting
Two stage least squares (2SLS)
- Stage 1: regress on
- By randomization, and are independent
- Obtain the predicted value of given for each subject
- is projection of onto the space spanned by
- Stage 2: regress on
- By exclusion restriction, is independent of given
Interpretation of in 2SLS: the causal effect
Consider the case where both and are binary
There are two values of in the 2nd stage model, and
- When we go from to , what we observe is going from to
- We observe a mean difference of with a unit change in
Thus, we should observe a mean difference of with unit change in
The 2SLS estimator is a consistent estimator of the CACE
More general 2SLS
2SLS can be used
- with covariates , and
- for non-binary data (e.g, a continuous instrument)
Stage 1: regression on and covariates
- and obtain the fitted values
Stage 2: regress on and
- Coefficient of is the causal effect
Sensitivity analysis and weak instruments
Sensitivity analysis
Sensitivity analysis method studies when each of the IV assumption (partly) fails
- Exclusion restriction: if does affect by an amount , would my conclusion change? Vary
- Monotonically: if the proportion of defiers was , would my conclusion change?
Strength of IVs
Depend on how well an IV predicts treatment received, we can class it as a strong instrument or a weak instrument
For a weak instrument, encouragement barely increases the probability of treatment
Measure the strength of an instrument: estimate the proportion of compliers
- Alternatively, we can just use the observed proportions of treated subjects for and for
Problems of weak instruments
Suppose only 1% of the population are compliers
Then only 1% of the samples have useful information about the treatment effect
- This leads to large variance estimates, i.e., estimate of causal effect is unstable
- The confidence intervals can be too wide to be useful
References
Coursera class: “A Crash Course on Causality: Inferring Causal Effects from Observational Data”, by Jason A. Roy (University of Pennsylvania)