The cause is itself influenced: what helps? (instrumental variables, two-stage least squares 2SLS)
In brief
A regression asks: how does the outcome change when the cause changes? That is only right if the cause is not itself co-determined by the outcome or by something unmeasured. With the price of a good this is hard: when many people buy, the price rises, and when the price rises, fewer buy. Both at once cannot be separated in the data; the price is then called endogenous (co-determined from within). An instrument is a variable from outside: it shifts the price without touching demand itself. The two-stage calculation (2SLS) takes two steps: first the price is predicted from the instrument (first stage), then the calculation continues with this "cleaned" price (second stage).
An example with real data
Cigarettes in 48 US states, 1995: how much does consumption fall when the price rises? Everything in logarithms, so the number is an elasticity (1% more price, so many percent less consumption). Ordinary regression gives −1.4065 (standard error 0.2514). The instrument is the tax difference (sales tax minus cigarette tax): it shifts the price but has no path of its own to demand. The first stage is strong, F(1, 45) = 45.16. The calculation with the instrument gives −1.1434 (standard error 0.3595): weaker than ordinary regression and less certain. The Wu-Hausman test sees no clear difference, F(1, 44) = 1.10, p = .300. With two instruments (plus the cigarette tax) the estimate becomes more precise, −1.2774 (standard error 0.2632), and the Sargan test finds no contradiction between the two, χ²(1) = 0.33, p = .564.
When do I use it?
When there is a suspicion that the cause is co-determined by the outcome or by something unmeasured, and there is a variable from outside that can be argued for from subject knowledge: a random draw, a rule, a distance, a tax. Without a convincing instrument the method does not help: a bad instrument is worse than none.
Requirements
- Relevance: the instrument must move the cause clearly. The first stage checks that: rule of thumb F above 10. Below that it is a weak instrument; Statable then warns.
- Exogeneity: the instrument may act on the outcome only through the cause. That cannot be proved from the data, only argued from subject knowledge.
- At least as many instruments as suspect causes.
How it works in Statable
- Open a table with an outcome, a suspect cause and at least one instrument, for example Examples > "Cigarettes and taxes (Stock and Watson)" (economics) and run the regression "lpackungen from lpreis".
- Under the result, at "Calculate differently", open the block "Is the cause itself influenced by the outcome? (instrumental variables, 2SLS)" (Ctrl+K: "instrumental variables"); outcome "lpackungen", suspect cause "lpreis", instrument "steuerdifferenz", other feature "leinkommen"; "Calculate instrumental variables".
The table shows the estimate with the instrument and next to it ordinary regression; the first-stage F is always shown, and the script for R can be saved.
Reading and reporting the result
Price was instrumented with the tax difference (first stage F(1, 45) = 45.16). The price elasticity of demand was −1.14 (robust SE = 0.37; ordinary regression: −1.41).
Limits
- The assumption that the instrument acts only through the cause remains an assumption. The Sargan test only checks whether several instruments fit each other, not whether all are valid.
- The standard errors hold for larger samples (here 48 cases: rather few). Statable calculates one suspect cause; several at once the calculation core can do, the block (not yet).
What is often misunderstood
Sources
Stock, J. H. & Watson, M. W. Introduction to Econometrics (cigarette example; data CigarettesSW in the R package AER, GPL). Hanck, C. et al. Introduction to Econometrics with R, ch. 12 (open access, econometrics-with-r.org). Cunningham, S. Causal Inference: The Mixtape (mixtape.scunning.com, open access). Own words, no exercise taken from a book.
Take away
- If the cause is co-determined by the outcome, ordinary regression is biased.
- An instrument from outside shifts the cause without acting on the outcome itself; 2SLS uses only that part.
- The first-stage F always belongs next to the result: below about 10 the instrument is weak.
- That the instrument is valid cannot be proved, only argued.