
All the files were run using Matlab R2024a, the model was run using toolbox Dynare 6.0. All the model files including steady state are in the "Model" folder.

---------------------------------------------------------------
Baseline model file

The mod file for model simulation is Model/model.mod. The steady state  is computed in model_steadystate.m using functions keprimeall_new_conv.m and kecf_conv. 

Ramsey policy for the baseline

Model/model_Ramsey.mod: with Ramsey policy max aggregate utility; The steady state  is computed in model_steadystate.m using functions keprimeall_Ramsey_new.m and kecf_conv using inital values for abatament capital keprime.mat

 
--------------------------------------------------------
For robustness checks (Appendices)
--------------------------------------------------------

M_eninp_cv_ac_contMP_noind.mod simulations partially indexed benefits
M_eninp_cv_ac_contMP_Ramsey_noind.mod: with Ramsey policy 

M_eninp_cv_ac_contMP_rw.mod with more flexible wages
M_eninp_cv_ac_contMP_Ramsey_rw.mod: with Ramsey policy max aggregate utility with more flexible wages;

M_eninp_cv_ac_contMP_cmrs.mod with variable level of households ss savings
M_eninp_cv_ac_contMP_Ramsey_cmrs.mod
---------------------------------------------------------

To replicate the Figures except Figure 1-2,  run the corresponding files in the Figures folder. If you have already run the mod files, comment the corresponding lines.












