Error using resol Too many output arguments

Hello professor. I was trying to run a dynare code to calculate best parameters based on a welfare rule. However there’s a problem with my code, especially function welfare_objective which has an error with resol, probably because the code was created for dynare 4. or 5.. Currently im using dynare 6.5. I’m attaching my code for help. In main im running the main simulation, while nk_wr is the model, and the rest are the files that contain different functions.

welfare_objective (1).m (1.1 KB)

rmain_.m (3.2 KB)

nk_wr.mod (35.4 KB)

get_consumption_equivalent_unconditional_welfare.m (2.3 KB)

get_consumption_equivalent_conditional_welfare.m (2.4 KB)

You can base the update on what was implemented in e.g. Born_Pfeifer_2018_welfare.mod: remove global variables and prepare fo… · JohannesPfeifer/DSGE_mod@05a8f0a · GitHub

1 Like