In short, the answer is yes.
The new command perfect_foresight_with_expectation_errors_solver
(and its associated shocks(learnt_in=…)
and endval(learnt_in=…)
blocks) can be used to simulate unexpected temporary or permanent shocks in a perfect foresight setup. So it implements a generalization of MIT shocks. You can do everything in one .mod
file, without the need to use MATLAB code.