Hi Johannes,
Thank you for sharing this. I am trying to work through the code you had shared. The code requires me to specify the following:
%get observable position in decision rules
obs_var=oo_.dr.inv_order_var(options_.varobs_id);
Unfortunately, I am not able to recover, varobs_id from the output files that are generated from running dynare. It would be great if you could please help me out with this.
Many thanks for your help.