by yadselvakumar » Thu Jan 05, 2017 4:38 pm
So I'm using version 4.4.3, which I don't think is the unstable version. I use the mod file attached. My procedure is as follows:
1) I run the estimation file (solve_SW_estimation.mod) attached. And save the outputs (IRFs, FEVD, Bayesian forecasts, Smoothed Variables etc.)
2) I then use the mh1.blck files to save all the parameter draws, from which I calculate mean Parameters values etc - this I can replicate compared to the Dynare output
3) I save the parameter means and use this to run the dynare on solve_SW_estim_pars.mod (attached below). I then extract my ABCD matrices to calculate IRFs and FEVDs - this I can also replicate the output IRFs and FEVDs from Dynare estimation.
4) I then use the Kalman Filter (using oo_.mean as my constant, and the ABCD matrices) to calculate smoothed estimates of the state variables - I can more-or-less replicate this up to a constant - once I demean, I get very close, but not exact. Why might this be?
5) Another issue is that say take the Smoothed Variables and Shocks from the dynare output and arrange them in state-space form so that I can create my own forecasts. I cannot get the same answer as Dynare - note that it is not due to my ABCD matrices as I can calculate IRFs and FEVDs perfectly. How does dynare calculate the forecasts? Which parameter value does it use? or does it run the solver for all the draws and then calculate the mean?
Thanks,
Yad
- Attachments
-
- solve_SW_estim_pars.mod
- (9.25 KiB) Downloaded 43 times
-
- solve_SW_estimation.mod
- (12.46 KiB) Downloaded 40 times