2nd order decision rule
Posted: Mon Apr 27, 2009 1:57 am
Hi,
I am solving a relatively big DSGE model using Dynare version 4.0.3:
MODEL SUMMARY
Number of variables: 260
Number of stochastic shocks: 1
Number of state variables: 86
Number of jumpers: 26
Number of static variables: 154
I did not have problems with the 1st order approximation, when all the irf`s were plotted correctly.
Only changing to "order=2", to run the 2nd approximation, the log file did not report errors, but all the irf 's values are NaN.
Since Dynare computed all the decision rule matrixes, I was trying to reconstruct the 2nd order decision rule using Matlab, only to understand better what is happening.
However, reading the manual about the order of the variables, and checking the matrixes, I found that the values in oo_.dr.ys are in the declaration order and not in alphabetical order as reported in the manual (pag. 25: “– ys: oo_.dr.ys. The vector rows correspond to variables in alphabetical order of the variable names.”).
I have the following questions:
1 - Why did Dynare not report errors, if it did not compute the irf 's? Could I assume that the matrixes are correct?
2 - Is there any tip about how to check if the 2nd order approximation matrixes of the decision rule were correctly computed?
3 - What is the correct order of the values in the matrixes of the 2nd order approximation of decision rule? Alphabetical or declaration order?
4 – Did Dynare use exactly the same Matlab codes of Schmitt-Grobe&Uribe? Did it use Symbolic Math Toolbox or other numerical routines for computing the derivatives?
Best regards,
Marcos Valli.
I am solving a relatively big DSGE model using Dynare version 4.0.3:
MODEL SUMMARY
Number of variables: 260
Number of stochastic shocks: 1
Number of state variables: 86
Number of jumpers: 26
Number of static variables: 154
I did not have problems with the 1st order approximation, when all the irf`s were plotted correctly.
Only changing to "order=2", to run the 2nd approximation, the log file did not report errors, but all the irf 's values are NaN.
Since Dynare computed all the decision rule matrixes, I was trying to reconstruct the 2nd order decision rule using Matlab, only to understand better what is happening.
However, reading the manual about the order of the variables, and checking the matrixes, I found that the values in oo_.dr.ys are in the declaration order and not in alphabetical order as reported in the manual (pag. 25: “– ys: oo_.dr.ys. The vector rows correspond to variables in alphabetical order of the variable names.”).
I have the following questions:
1 - Why did Dynare not report errors, if it did not compute the irf 's? Could I assume that the matrixes are correct?
2 - Is there any tip about how to check if the 2nd order approximation matrixes of the decision rule were correctly computed?
3 - What is the correct order of the values in the matrixes of the 2nd order approximation of decision rule? Alphabetical or declaration order?
4 – Did Dynare use exactly the same Matlab codes of Schmitt-Grobe&Uribe? Did it use Symbolic Math Toolbox or other numerical routines for computing the derivatives?
Best regards,
Marcos Valli.