Description: Omitted variables are one of the most important threats to the identification of causal effects. In linear models, the well known Omitted Variable Bias formula shows how an omitted variable can bias the regression coefficient on the covariate of interest when that covariate is correlated with the omitted variable. Since is often implausible to assume that data has been collected on every relevant variable, applied research is often vulnerable to this bias. Nonetheless, omitted variable bias can be quantified under various alternative assumptions about the relationship between the omitted variable and the covariate of interest. Using these techniques, researchers can analyze how sensitive their results are to omitted variable bias.
Several methods of sensitivity analysis for linear models have been proposed in the literature. This repository contains a Stata module that implements the methods proposed in Diegert, Masten, and Poirier (2022), Oster (2019)1, and Masten and Poirier (2022). In each of these papers, the authors define a set of sensitivity parameters which index relaxations of the assumption that the covariate of interest is uncorrelated with any unobserved variables. The parameter of interest in both cases is
-
What is the set of parameter estimates for
$\beta_\text{long}$ which are consistent with the relaxed assumptions? That is, what are bounds on the value of$\beta_\text{long}$ under the alternate assumptions? -
How much can we relax the exogeneity assumption before a hypothesis about
$\beta$ is overturned? This is called the breakdown point: the maximum relaxation of the baseline assumption before the hypothesis is overturned.
The package can be used to perform both of these sensitivity analyses using the sensitivity parameters defined in Diegert, Masten, and Poirier (2022) and Oster (2019).
Authors: This module was written by Paul Diegert (Duke) in collaboration with Matt Masten and Alexandre Poirier.
- Stata version 16 SE or 17 SE
To install regsensitivity
from within Stata:
ssc install regsensitivity, all
The all
option will install the accompanying dataset used in the vignette as well as the package itself. It can also be installed manually by copying all files in the regsensitivityStataPackage
subdirectory to your Stata/ado/personal
directory. For explanation of the syntax:
help regsensitivity
- regsensitivityStataPackage - Contains all Stata package files.
- vignette - Contains a vignette showing how to use the module. Specifically, it walks through the empirical illustration of Bazzi, Fiszbein, and Gebresilasse (2020) that is used in Diegert, Masten, and Poirier (2022).
Please post problems or suggestions to the issue queue.
Bazzi, Fiszbein, and Gebresilasse (2020) Frontier Culture: The Roots and Persistence of Rugged Individualism in the United States, Econometrica (Journal link)
Diegert, Masten, and Poirier (2022) Assessing Omitted Variable Bias when the Controls are Endogenous, arXiv working paper
Masten, and Poirier (2022) The Effect of Omitted Variables on the Sign of Regression Coefficients, arXiv working paper
Oster (2019) Unobservable Selection and Coefficient Stability: Theory and Evidence, Journal of Business & Economic Statistics (Journal link)
© 2022 Paul Diegert, Matt Masten, Alexandre Poirier
The contents of this repository are distributed under the MIT license. See file LICENSE
for details.