The code to replicate Cocco et al breaks down after value function iteration,
Operator ‘==’ is not supported for operands of type ‘struct’.
Error in LifeCycleProfiles_FHorz_Case1_PType (line 581)
if simoptions.whichstats(1)==1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in CoccoGomesMaenhout2005 (line 413)
AgeConditionalStats=LifeCycleProfiles_FHorz_Case1_PType(StationaryDist,Policy, FnsToEvaluate, Params,n_d,n_a,n_z,N_j,Names_i,d_grid,a_grid,z_grid_J, simoptions);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^