Become a YouTube member, get access to special content and support the channel!
This tutorial presents a step-by-step implementation of the local projection method in Stata, following the empirical framework of Jordà (2005).
The objective is to estimate impulse response functions and compare results obtained from local projections with those derived from a standard vector autoregressive (VAR) model.
Local projections provide a flexible alternative to VAR models and have become widely used in applied macroeconomics due to their robustness to model misspecification and ease of implementation.
Get access to the complete STATA DO file, Slides and Dataset. Produce professional graphs and master Local Projection in STATA.
The local projection method, introduced by Jordà (2005), estimates impulse response functions by running a sequence of linear regressions, one for each forecast horizon.
For each horizon, the future value of a variable is regressed on:
A structural shock
Lagged dependent variables
Additional control variables
This differs from VAR models, which estimate a full system of equations with fixed dynamics.
As a result, local projections:
Impose fewer restrictions
Are more robust to misspecification
Allow straightforward extensions
A comparison between local projections and VAR models is central in empirical work.
VAR models:
Estimate a system of equations
Require stronger assumptions
Are efficient under correct specification
Local projections:
Estimate responses horizon by horizon
Are more flexible
Are robust to incorrect dynamic assumptions
Both approaches are often used jointly in applied research.
This tutorial replicates the empirical strategy based on Evans and Marshall (1998), as implemented in Jordà (2005).
The analysis proceeds in four steps:
Estimation of a VAR model
Computation of impulse response functions
Identification of a structural monetary policy shock
Estimation using local projections
We begin by estimating a VAR(12) model using macroeconomic variables, including employment, prices, commodity prices, and the federal funds rate.
Identification is achieved through Cholesky decomposition, with the federal funds rate appropriately ordered in the system.
Impulse response functions are computed from the estimated VAR model.
To improve clarity:
IRFs are extracted manually
Confidence intervals are constructed
Graphs are generated using customized plotting
This produces clear and publication-quality results.
Local projections require an exogenous shock.
To construct it:
Residuals are extracted from the VAR
Contemporaneous effects are removed
The remaining component is interpreted as the structural shock
The shock is normalized to one standard deviation.
Impulse response functions are then estimated using the local projection method.
For each horizon:
A separate regression is estimated
The structural shock is included
Lagged controls are added
Inference is conducted using Newey–West standard errors to correct for autocorrelation and heteroskedasticity.
The impulse responses obtained from local projections are compared to those from the VAR model.
Results typically show:
Similar dynamics
Wider confidence intervals for local projections
This reflects greater robustness to misspecification.
The following references are central to this tutorial. Jordà (2005) introduces the local projection method. The Stata manual developed by Ugarte-Ruiz provides detailed guidance for local projections implementation. Evans and Marshall (1998) present the VAR(12) model used by Jordà as a benchmark to compare impulse response functions obtained from local projections and VAR models.
Jordà, Ò. (2005). Estimation and inference of impulse responses by local projections. American economic review, 95(1), 161-182. Download
Ugarte-Ruiz, A. (2025). Locproj & Lpgraph: Stata commands to estimate Local Projections. BBVA Research WP, 25-09. Download
Evans, C. L., & Marshall, D. A. (1998, December). Monetary policy and the term structure of nominal interest rates: evidence and theory. In Carnegie-Rochester Conference Series on Public Policy (Vol. 49, pp. 53-111). North Holland. Download
Romer, C. D., & Romer, D. H. (2004). A new measure of monetary shocks: Derivation and implications. American economic review, 94(4), 1055-1084. Download
In many macroeconomic applications, the effects of shocks depend on the state of the economy. For example, fiscal multipliers are often larger during recessions than during expansions, as shown by Valerie A. Ramey and Sarah Zubairy (2018). Similarly, financial shocks tend to have stronger effects during periods of credit stress, as documented by Oscar Jordà, Moritz Schularick, and Alan M. Taylor (2013). These findings highlight the importance of allowing for nonlinear and state-dependent responses when estimating impulse response functions.
Ramey, V. A., & Zubairy, S. (2018). Government spending multipliers in good times and in bad: evidence from US historical data. Journal of political economy, 126(2), 850-901. Download
Jordà, Ò., Schularick, M., & Taylor, A. M. (2013). When credit bites back. Journal of money, credit and banking, 45(s2), 3-28. Download
The local projection method in Stata is an econometric approach used to estimate impulse response functions by running a sequence of linear regressions, one for each forecast horizon. It provides a flexible alternative to vector autoregressive (VAR) models and is widely used in applied macroeconomics.
VAR models estimate a full system of equations with fixed dynamic relationships, while local projections estimate separate regressions for each horizon. Local projections are more flexible and robust to misspecification, whereas VAR models can be more efficient under correct specification.
Newey–West standard errors correct for heteroskedasticity and autocorrelation in the residuals. Because local projections involve overlapping horizons, residuals are serially correlated by construction, making standard OLS inference invalid.
Jordà (2005) introduced the local projection method as an alternative to VAR-based impulse response estimation. The approach avoids imposing a full dynamic system and instead estimates responses directly at each horizon.
Yes. Local projections can be extended to incorporate nonlinearities by including interaction terms or nonlinear transformations of variables. This allows the estimated impulse responses to vary depending on economic conditions or the magnitude of shocks.
State dependency refers to the idea that the effect of a shock may vary depending on the state of the economy, such as during recessions or expansions. In local projections, this is typically implemented using interaction terms with state indicators.
Local projections are widely used because they are flexible, easy to implement, and robust to model misspecification. They are particularly useful when researchers want to study nonlinear or state-dependent effects.
Video 1
Video 2
Video 3
Video 4