dynamac is a suite of programs in Stata designed to assist users in modeling and visualizing the effects of autoregressive distributed lag models, as well as testing for cointegration. This consists of two programs:

  • dynardl is a flexible program designed to dynamically simulate and plot a variety of types of autoregressive distributed lag models, including error-correction models
  • pssbounds implements the bounds cointegration test proposed by Pesaran, Shin and Smith (2001) and discussed in Philips (2018)
  • Download

    The simplest way to load dynamac into Stata is to type "net sj 18-4 st0545" into Stata's input console, or "findit dynamac". Alternatively, you can download this zip file, unzip it, and either call directly to the .ado files or place them in your "ado/plus/" folder.


    For a discussion of dynamac, as well as substantive examples, see the Stata Journal article (you can find the ungated version here).


  • Soren Jordan, Department of Political Science, Auburn University. sorenjordanpols [AT] gmail.com
  • Andrew Q. Philips, Department of Political Science, University of Colorado Boulder. andrew.philips [AT] colorado.edu