... | ... | @@ -41,6 +41,19 @@ The correct code in Dynare `4.6` would be |
|
|
```
|
|
|
Note the deleted brackets in the definition of the range `1:4`
|
|
|
|
|
|
4. The `ramsey_policy`-command is now deprecated. It is superseded by calls to `ramsey_policy`, `stoch_simul`, and `evaluate_planner_objective`. This allows for better control of the individual elements going into the computations.
|
|
|
For example, to achieve the same results as previously with
|
|
|
```
|
|
|
ramsey_policy(planner_discount=0.99,order=1,instruments=(r),periods=500,irf=25);
|
|
|
```
|
|
|
the new syntax is
|
|
|
```
|
|
|
ramsey_model(planner_discount=0.99,instruments=(r));
|
|
|
stoch_simul(order=1,periods=500,irf=25);
|
|
|
evaluate_planner_objective;
|
|
|
```
|
|
|
The `ramsey_model`-command sets up the Ramsey problem, while `stoch_simul` solves the model with perturbation techniques, conducts stochastic simulations, and computes IRFs. Finally, `evaluate_planner_objective` computes and displays the value of the `planner_objective`.
|
|
|
|
|
|
## Changes related to Dynare internals
|
|
|
|
|
|
1. Dynare has phased out the use of global variables in `stoch_simul` and its related subfunctions like `simult_`, `irf`, and `discretionary_policy` (see https://git.dynare.org/Dynare/dynare/commit/e043c60903dd0e5746feb8af25cd60f1dbcbe53f). In case you looped over
|
... | ... | |