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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

locproj and lpgraph: Commands to estimate local projections

Alfonso Ugarte-Ruiz
The Stata Journal Promoting communications on statistics and Stata
Monetary Policy and Economic Impact
article

locproj and lpgraph: Commands to estimate local projections

Alfonso Ugarte-Ruiz
article en

Abstract

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.

The Stata Journal Promoting communications on statistics and StataVol. 26(4)
Banco Bilbao Vizcaya Argentaria (Spain) (ES)
Monetary Policy and Economic Impact
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon