No description, website, or topics provided.
Switch branches/tags
Clone or download
Latest commit ea9880d Nov 13, 2018
Failed to load latest commit information.
R - Nov 13, 2018
data - Release of new development version Aug 2, 2018
docs - Adapted examples Nov 12, 2018
inst - Documentation and citation update Sep 27, 2018
man - Changed example Nov 12, 2018
src - Nov 13, 2018
tests - New test for iv approach Nov 13, 2018
.Rbuildignore - Update documentation Jun 14, 2018
.gitignore - Update description Jun 15, 2018
.travis.yml - Update travis Jun 14, 2018
DESCRIPTION - Nov 11, 2018
NAMESPACE - Nov 11, 2018 - Nov 11, 2018
README.Rmd - Update documentation Oct 15, 2018 - Update documentation Oct 15, 2018 - Changes for new CRAN submit Sep 30, 2018
lpirfs.Rproj First commit Apr 12, 2018

lpirfs CRAN Version

Build Status Downloads Total Downloads Coverage Status


An R-package which estimates linear and nonlinear impulse responses with local projections by Jordà (2005).

Main features

  • Estimates linear and nonlinear impulse responses with local projections.
  • Estimates linear impulse responses with identified shock and/or with 2SLS.
  • Functions to plot linear and nonlinear impulse responses.
  • Functions are partly implemented in Rcpp and RcppArmadillo to improve efficiency.
  • High performance with parallel computation.


You can install the released version of lpirfs from CRAN:


You can install the development version of lpirfs from GitHub:

# install.packages("devtools")

The package compiles some C++ source code for installation, which is why you need the appropriate compilers:

On Windows you need Rtools available from CRAN.

On macOS you need the Clang 6.x compiler and the GNU Fortran compiler from macOS tools. Having installed the compilers, you need to open a terminal and start R via ‘PATH=/usr/local/clang6/bin:$PATH R’. Yo can then install the package via devtools::install_github(“AdaemmerP/lpirfs”)

How to use

Examples can be found here.


I am thankful to Òscar Jordà for encouraging comments and helpful suggestions. I am also indebted to Sarah Zubairy for providing the Matlab code before the publication of their paper.

I greatly benefit from the profound R, Rcpp and GitHub knowledge of Philipp Wittenberg and Detlef (overflow) Steuer. Last but not least, I am grateful to Philipp Dybowski for his comments and without whom I would have never started this project.

All remaining errors are obviously mine.


The development version contains two new functions to estimate linear and nonlinear local projections for panel data.


Philipp Adämmer


GPL (>= 2)