Differences between revisions 145 and 146
Revision 145 as of 2014-01-03 10:28:17
Size: 16235
Comment:
Revision 146 as of 2014-01-24 16:52:49
Size: 16289
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 * New option {{{tableRowIndent}}} to {{{addTable}}}

This page documents new or previously undocumented features. It is mostly for internal use by Dynare developers. Users should rather read the Release Notes.

New in Dynare unstable (to be released as 4.5)

  • Added the possibilty to set the initial condition of the (stochastic) extended path simulations with the histval block
  • osr saves the optimal value of parameters to oo_.osr.optim_params

  • New method abs to dates class

  • New estimation option posterior_max_subsample_draws (see issue #567)

  • New option endogenous_terminal_period to simul

  • New option tableRowIndent to addTable

New in Dynare 4.4

  • Extended path at order > 0, aka Stochastic Extended Path

  • Alternative algorithms for computing decision rules of a stochastic model, based on the cycle reduction and logarithmic reduction algorithms; available with options dr, dr_cycle_reduction_tol, dr_logarithmic_reduction_tol, dr_logarithmic_reduction_maxiter of stoch_simul

  • Pruning now works with 3rd order approximation
  • @#ifndef directive for macro processor (feature backported to Dynare 4.3.1)

  • New macro processor operator: length

  • Possibility of specifying several graph format outputs as in stoch_simul(graph_format = (eps, pdf)); (feature backported to Dynare 4.3.1)

  • Possibility of displaying but not saving graphs (by setting graph_format = none)

  • Support for XLSX datafiles (feature backported to Dynare 4.3.1)
  • New option all_values_required to initval and endval enforces initialization of endogs and exogs within the block

  • Console mode implies nodisplay option

  • New command model_diagnostics to perform various sanity checks on the model. With this new syntax, you shouldn't pass any argument to model_diagnostics (contrarily to the similar Matlab function that some of you may have already used).

  • Option ar can be given in the estimation command

  • Computation of conditional forecast using extended path method. In this case the expectation command in the shock block has to be used to indicate the nature of expectation (surprise or perfect_foresight) and the options simulation_type has to be set equal to deterministic.

  • New option nowarn to suppress warnings

  • The deciles of some posterior moments were erroneously saved in a field Distribution: this field is now called deciles, for consistency with other posterior moments and with the manual. Similarly, the fields Mean, Median, HPDsup, HPDinf, and Variance are now consistently capitalized to be consistent with the documentation.

  • The information on MCMC acceptance rates, seeds, last log posterior likelihood, and last parameter draw are now saved on disk and accessible with the internals command

  • New option endogenous_prior to estimation command

  • Automatic detrending engine extended to work on models written in logs (see RemovingTrends)

  • Estimation with CSV datafiles
  • New option differentiate_forward_vars

  • New options mode_check_neighbourhood_size, mode_check_symmetric_plots and mode_check_number_of_points

  • New option parallel_local_files of model block, for transferring extra files during parallel computations

  • New option clock of set_dynare_seed

  • Possibility of creating PDF reports from CSV datafiles and dynSeries

  • New option qz_zero_threshold

  • New command line options: nograph, nointeractive, nostrict

  • New verbatim block for inclusion of text that should pass through the preprocessor and be placed in the modfile.m file

  • Geweke (1992) convergence diagnostics for single chain MCMC
  • New optimizer for the mode (mode_compute=10): Uses the simpsa algorithm, based on the combination of the non-linear simplex and simulated annealing algorithms and proposed by Cardoso, Salcedo and Feyo de Azevedo (1996)

  • New option mcmc_jumping_covariance to estimation

  • New option use_calibration to estimated_params_init

  • New option save_draws to ms_simulation

  • New option irf_plot_threshold to stoch_simul and estimation

  • New option long_name for endogenous, exogenous and parameter declarations

New in Dynare 4.3

  • Particle filter triggered with order=2 in estimation

  • Support for Markov-Switching SBVARs, along the lines of Sims, Waggoner and Zha (2008) (see the dedicated section in the reference manual)
  • Extended path
  • New command for computing optimal policy under discretion: discretionary_policy

  • New command for identification analysis: identification

  • Stochastic simulation and estimation can benefit from block decomposition (with the block option, only at 1st order)

  • Global Sensitivity Analysis toolbox now part of official Dynare distribution
  • New command for computing smoother/filter on calibrated model: calib_smoother

  • The default algorithm for deterministic simulations (available under stack_solve_algo=0) has changed and is faster than the former algorithm (LBJ) (which is still available under stack_solve_algo=6)

  • New option analytic_derivation for estimation command: currently it works only for stationary models without missing observations;

  • ParallelDynare: possibility of assigning different weights to nodes in the cluster and creating clusters comprised of nodes with different operating systems

  • Possibility of globally altering the defaults of options by providing a file in the GlobalInitFile field of the configuration file

  • Dynare++: new option --burn to discard initial simulation points

  • New option IRF_SHOCKS to allow irfs to be created only for certain exogenous variables

  • New optimizers for the mode:
    • mode_compute=8. This is a Dynare implementation of the Nelder-Mead simplex based optimization routine (generally more efficient than the MATLAB or Octave implementation available with mode_compute=7)

    • mode_compute=9: CMA Evolution Strategy algorithm

  • Behavior with respect to graphs has changed:
    • By default, Dynare displays graphs and saves them to disk in EPS format only
    • Format can be changed to PDF or FIG with the new graph_format option

    • It is possible to save graphs to disk without displaying them with the new nodisplay option

  • unit_root_vars is now obsolete; use diffuse_filter option of estimation instead

  • New option nocheck to steady: tells not to check the steady state and accept values given by the user, useful for models with unit roots

  • ramsey_policy now displays the planner objective value function under Ramsey policy and stores it in oo_.planner_objective_value (not fully working yet)

  • New option value parameter_set=calibration to the conditional_forecast option: to be used for calibrated models (previously, conditional forecast was only possible for estimated models)

  • Theoretical autocovariances are now computed when block option is present

  • The linear option is now compatible with block and bytecode options

  • New primitives allowed in model block: abs(), sign()

  • use_dll now creates a mex file for the static model in addition to that for the dynamic model

  • New option maxit in simul and steady commands to determines the maximum number of iterations of the non-linear solver. The default value of maxit is 10. The maxit option is shared with the simul and steady commands. So a change in maxit option will be considered in both simul and steady commands.

  • New top-level MATLAB/Octave command internals for internal documentation and unitary tests

  • steady_state_model lets you redefine a parameter

  • shocks: a series of deterministic shocks can be passed as a pre-defined vector in the values sub-command

  • New option sub_draws in estimation for controlling the number of draws used in computing the posterior distributions of various objects

  • New macroprocessor command: @#ifdef

  • Macro variables can be defined on the dynare command line with the -D option

  • loglinear option works with purely backward or forward models at order 1

  • New option homotopy_force_continue for steady

  • New preprocessor option nolog to tell Dynare not to create a logfile

  • New solvers for Lyapunov and Sylvester equations

New in Dynare 4.2

  • New solution algorithms:
    • Pruning for second order simulations has been added, as described in Kim, Kim, Schaumburg and Sims (JEDC, 2008). It is triggered by option pruning of stoch_simul (only 2nd order, not available at 3rd order)

    • Models under PartialInformation can be solved, as in Pearlman, Currie and Levine (Economic Modeling, 1986)

    • New nonlinear solvers for FastDeterministicSimulationAndSteadyStateComputation

  • Dynare can now use the power of multi-core computers or of a cluster of computer using parallelization. See ParallelDynare for the list of tasks which can be parallelized and for configuration instructions

  • New features in the user interface:
    • A steady state file can now be automatically generated, provided that the model can be solved analytically, and that the steady state as a function of the parameters is declared with the steady_state_model command (see the entry in the reference manual for more details and an example)

    • For non-stationary models, Dynare is now able of automatically RemovingTrends in all the equations: the user writes the equations in non-stationary form and declares the deflator of each variable. Then Dynare perform a check to determine if the proposed deflators are compatible with balanced growth path, and, if yes, then it computes the detrended equations

    • It is now possible to use arbitrary functions in the model block: see ExternalFunctions

  • Other minor changes to the user interface:
    • New primitives allowed in model block: normpdf(), erf()

    • New syntax for DsgeVar

    • Syntax of deterministic shocks has changed: after the values keyword, arbitrary expressions must be enclosed within parentheses (but numeric constants are still accepted as is)

  • Various improvements:
    • Third order simulations now work without the USE_DLL option: installing a C++ compiler is no longer necessary for 3rd order
    • The HP filter works for empirical moments (previously it was only available for theoretical moments)
    • Estimation: if the selected_variables_only option is present, then the smoother will only be run on variables listed just after the estimation command

    • Estimation: in the shocks block, it is now possible to calibrate measurement errors on endogenous variables (using the same keywords than for calibrating variance/covariance matrix of exogenous shocks)

    • It is possibile to choose the parameter set for ShockDecomposition

    • The diffuse filter now works under Octave
    • New option console on the Dynare command-line: use it when running Dynare from the console, it will replace graphical waitbars by text waitbars for long computations

    • Steady option solve_algo=0 (uses fsolve()) now works under Octave

  • For Emacs users:
    • New Dynare mode for Emacs editor (contributed by Yannick Kalantzis)
    • Reference manual now available in Info format (distributed with Debian/Ubuntu packages)
  • Miscellaneous:
    • Deterministic models: leads and lags of two or more on endogenous variables are now substituted by AuxiliaryVariables; exogenous variables are left as is

New in Dynare 4.1

  • Dynare now accepts leads and lags on exogenous variables (internally it uses AuxiliaryVariables for that purpose)

  • Dynare can now compute third order approximations with stoch_simul(order=3). Note that you need to ConfigureMatlabWindowsForMexCompilation in order to be able to use that option; under Linux with Octave, you need to install utilities for compiling MEX files (under Ubuntu or Debian, in a package called octave3.2-headers).

  • Dynare++ is now distributed along with Dynare
  • FastDeterministicSimulationAndSteadyStateComputation

  • Shock decomposition

  • Dynare can now handle missing observations in estimation
  • PredeterminedVariables

  • New operators in model equations:
    • steady state operator: STEADY_STATE(EXPRESSION). This operator is used to take the value of the enclosed expression at the steady state. A typical usage is in the Taylor rule, where you may want to use the value of GDP at steady state to compute the output gap

    • expectation operator: EXPECTATION(INTEGER)(EXPRESSION). This operator is used to take the expectation of some expression using a different information set than the information available at current period. For example, EXPECTATION(-1)(x(+1)) is equal to the expected value of variable x at next period, using the information set available at the previous period. In practice, Dynare solves this by creating an AuxiliaryVariables equal to AUX = x(+2), and by replacing the expectation operator by AUX(-1). Note that a value of 0 for the time shift component is reserved for partial information models (not yet fully implemented).

  • Creating a LaTeX file containing the model equations

  • The type of a symbol can now be changed after the symbol declaration. In the following example, alpha will be considered as a parameter, and beta as an endogenous.

var alpha;
parameters beta;
...
change_type(parameters) alpha;
change_type(var) beta;

Note that the type (parameters, var or varexo) change applies to the whole MOD file. This command is mainly useful when symbol declarations are taken from an included file, and you want to change the types of some variables (for example for "variable flipping"). This feature should not be used for dynamic simulations.

  • The macro-language accepts a new operator in, which tests memberships of an element inside an array. In the following example, the body of the if statement will be evaluated:

@#define x = [ 1 3 5 ]
@#if 3 in x
...
@#endif
  • The Dynare command line accepts three new options:
    • onlymacro: only do the macro-processing step and stop there

    • nolinemacro: do not include original line numbers in the macro-expanded MOD file

    • savemacro=filename: save the macro-expanded file in filename (if no filename is specified, a default value is computed: it is obtained by adding -macroexp to the name of the MOD file)

  • Possibility of using the Anderson-Moore Algorithm (AIM) to compute the decision rules, instead of using Dynare's default method based on a generalized Schur decomposition. Use option aim_solver in stoch_simul or estimation. This option is only valid for first order approximation.

New in Dynare 4.0

Preprocessor

Dynare functions

Octave support (free alternative to Matlab)

DynareWiki: NewFeatures (last edited 2017-05-29 09:09:50 by StéphaneAdjemian)