Program and data files for 
Optimal Notional Defined Contributions
BY CARLOS E. DA COSTA AND MARCELO R. SANTOS

input files:

z_grid.txt
u_grid.txt
u_dist.txt
transition_matrix.txt
psurv.txt
ef.txt

Fortran files

main.f90               Main program 
mod_globvar.f90        file for variable declarations 
mod_initialize.f90     file for variables initialization 
mod_bellman.f90        file that contains the bellman equations 
mod_solution1.f90      file that solves the household problems 
mod_simulation.f90     file that simulates the decision rules  
mod_utilies.f90        file that contains the functions and numerical routines used to solve the model
toolbox.f90            file that contains the functions and numerical routines used to solve the model

- The files solve and simulate the models with mandatory contributions and voluntary contributions. 

- The set of files labeled as "vol" computes the voluntary case. 

- The variable "model" indicates whether the model to be solved is the benchmark model (model=0) or the counterfactual model (model=1).

- To solve the model for different profiles of SS contributions, the contribution function should be changed accordingly.
   
- We would like to acknowledge that some routines are taken from the Numerical Recipes for Fortran 77 and from Fehr, Hofmann and Kindermann (2020) "Introduction to Computational Economics Using Fortran" 
(and possibly modified by us). All errors are ours.


