[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 4.20 Misc commands

Command: set_dynare_seed (INTEGER)
Command: set_dynare_seed ('default')
Command: set_dynare_seed ('reset')
Command: set_dynare_seed ('ALGORITHM', INTEGER)

  Sets the seed used for random number generation.

Command: save_params_and_steady_state FILENAME;

  For all parameters, endogenous and exogenous variables, stores their value in a text file, using a simple name/value associative table.

  - for parameters, the value is taken from the last parameter initialization
  - for exogenous, the value is taken from the last initval block
  - for endogenous, the value is taken from the last steady state computation (or, if no steady state has been computed, from the last initval block)

  Note that no variable type is stored in the file, so that the values can be reloaded with `load_params_and_steady_state` in a setup where the variable types are different.

  The typical usage of this function is to compute the steady-state of a model by calibrating the steady-state value of some endogenous variables (which implies that some parameters must be endogeneized during the steady-state computation).

  You would then write a first ‘`.mod`’ file which computes the steady state and saves the result of the computation at the end of the file, using `save_params_and_steady_state`.

  In a second file designed to perform the actual simulations, you would use `load_params_and_steady_state` just after your variable declarations, in order to load the steady state previously computed (including the parameters which had been endogeneized during the steady state computation).

  The need for two separate ‘`.mod`’ files arises from the fact that the variable declarations differ between the files for steady state calibration and for simulation (the set of endogenous and parameters differ between the two); this leads to different `var` and `parameters` statements.

  Also note that you can take advantage of the `@#include` directive to share the model equations between the two files (see section Macro-processing language).

Command: load_params_and_steady_state FILENAME;

  For all parameters, endogenous and exogenous variables, loads their value from a file created with `save_params_and_steady_state`.

  - for parameters, their value will be initialized as if they had been calibrated in the ‘`.mod`’ file
  - for endogenous and exogenous, their value will be initialized as they would have been from an initval block

  This function is used in conjunction with `save_params_and_steady_state`; see the documentation of that function for more information.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ]

This document was generated by SÃ©bastien Villemot on May 24, 2011 using texi2html 1.82.