This suite of codes consists of a Fortran program that computes the value function and runs the simulations, and of a few Matlab codes which, taking in input the output of the Fortran code, generate most of the figures in the paper. -------------------------------------------------------------------------------------- - The Fortran code implements the algorith described in the appendix to the paper, in order to compute numerical approximations to 1) the set Omega 2) the value function 3) policy functions 4) cost function It also gives the option to 5) run a long simulation of one firm 6) generate a simulated panel of firms It consists of the files MAIN.f90, BOUND_l.f90, GLOBPARAM.f90, INVERTI.f90, PARAM.f90, PHASE.f90, SIMULABIS.f90, SOLVE.f90, TRANSIENTBIS.f90 The Fortran code is written in F90 standard and makes use of IMSL libraries. -------------------------------------------------------------------------------------- - The Matlab code graphics.m computes several renderings of value function, cost function, and policy functions. Among them, are Figures 4, 5, and 6 in the paper - The Matlab code phase.m generates Figure 7 - The Matlab code sample.m generates Figure 8 - The Matlab code transition.m generates Figure 9