Abstract:
The Hansen(1985) basic model. You may need to adapt the code for calls to external files. To understand the code, a good reading may be: Gary D. Hansen and Edward C. Prescott, Recursive Methods for Computing Equilibria of Business Cycle Models, Chapter 2 in: Thomas F. Cooley (ed.), Frontiers of Business Cycle Research, Princeton University Press, 1995.