locproj and lpgraph: Commands to estimate local projections
locproj estimates linear and nonlinear impulse–response functions (IRFs) based on the local-projections methodology first proposed by Jordà (2005, American Economic Review 95: 161–182). The command allows for the easy implementation of several options used in the growing literature of local projections. locproj reports the IRF, together with its standard error and confidence interval, as an output matrix and through an IRF graph. It supports different estimation methods, including instrumental variables and quantile regressions, and provides several options for transforming the response and shock variables, allowing the estimation of multipliers. It also allows the use of marginal effects instead of regression coefficients, which is highly convenient when the response variable is binary and the user wants to estimate the response as a probability. The user can easily specify different options for the desired IRF graph, as well as several other options to save and use the results. locproj also includes a postestimation command called lpgraph, which can plot IRFs fit by different models.
Authors
- Alfonso Ugarte-Ruiz (ORCID: https://orcid.org/0009-0001-9372-9460)
Institutions
- Banco Bilbao Vizcaya Argentaria (Spain) (ES)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1177/1536867x261508314
- Primary Topic
- Monetary Policy and Economic Impact
- Type
- article
- Field-Weighted Citation Impact
- 0.00