“A knotty puzzle may hold a scientist up for a century, when it may be that a colleague has the solution already and is not even aware of the puzzle that it might solve.”

― Isaac Asimov, The Robots of Dawn

I believe in open collaboration among researchers, so I try to make much of the code that I use on a daily basis available. I will update this as I make the code readable by humans.

Most of my more recent code is available by emailing me (bgriffy[at]albany[dot]edu), or through my github account.

Model Codes:

  • Bewley Model: link

  • Directed Search model with Block Recursion

  • Block Recursive Model with Risk Aversion


This program downloads the entire Panel Study of Income Dynamics from UMich and allows the user to create a panel based on selected variables. It then writes the necessary codes into a Stata format.

  • PySIPP: link

  • PyNLSY: link


  • US Map Plotter (Python): link
  • Application Generator: link