Estimated shocks from data and simulate model to fit data

This is done by estimating the model with an inversion filter. Dynare 5 does support estimating models with Occbin. See the manual.