Transcription of Dynare Reference Manual
1 Dynare Reference ManualRelease teamMar 22, 2023 CONTENTS1 is Dynare ? .. sources .. Dynare in your research ..42 Installation and requirements .. of Dynare .. Windows .. GNU/Linux .. macOS .. matlab .. Octave .. FreeBSD .. other systems .. installation .. on Windows .. on GNU/Linux .. on macOS .. matlab .. Octave .. matlab .. Octave .. words of warning ..93 Running invocation .. hooks .. Preprocessor Error Messages ..184 The model .. declarations .. Model Variable Declaration .. and variables .. the model .. the model .. functions .. functions .. few words of warning in stochastic context .. initialization .. declaration .. variables .. and terminal conditions .. on exogenous variables .. general declarations .. Steady state .. Finding the steady state with Dynare nonlinear solver .. Providing the steady state to Dynare .
2 Replace some equations during steady state computations .. Getting information about the model .. Deterministic simulation .. Stochastic solution and simulation .. Computing the stochastic solution .. Typology and ordering of variables .. First-order approximation .. Second-order approximation .. Third-order approximation .. Higher-order approximation .. Occasionally binding constraints (OCCBIN) .. Estimation based on likelihood .. Estimation based on moments .. Model Comparison .. Shock Decomposition .. Calibrated Smoother .. Forecasting .. Optimal policy .. Optimal policy under commitment (Ramsey) .. Optimal policy under discretion .. Optimal Simple Rules (OSR) .. Sensitivity and identification analysis .. Performing sensitivity analysis .. IRF/Moment calibration .. Performing identification analysis.
3 Types of analysis and output files .. Sampling .. Stability Mapping .. IRF/Moment restrictions .. Reduced Form Mapping .. RMSE .. Screening Analysis .. Identification Analysis .. Markov-switching SBVAR .. Epilogue Variables .. Semi-structural models .. Auxiliary models .. VAR expectations .. PAC equation .. Estimation of a PAC equation .. Displaying and saving results .. Macro processing language .. Macro expressions .. Macro directives .. Typical usages .. Modularization .. Indexed sums of products .. Multi-country models .. Endogeneizing parameters .. matlab /Octave loops versus macro processor loops .. Verbatim inclusion .. Misc commands .. 1865 The configuration Configuration .. Configuration .. Step-by-Step Guide .. 1936 Time .. in a mod file.
4 Dates class .. dseries class .. ARIMA-SEATS interface .. aggregation .. time series with a univariate model .. 2347 Reporting2378 Examples2499 Dynare misc commands25110 Bibliography255 Index259iiiivDynare Reference Manual , Release the development team of Dynare is composed of: St phane Adjemian (Le Mans Universit , Gains) Houtan Bastani Michel Juillard (Banque de France) Sumudu Kankanamge (Toulouse School of Economics and CEPREMAP) Fr d ric Karam (Le Mans Universit , Gains and CEPREMAP) Junior Maih (Norges Bank) Ferhat Mihoubi (Universit Paris-Est Cr teil, rudite) Willi Mutschler (University of T bingen) Johannes Pfeifer (Universit t der Bundeswehr M nchen) Marco Ratto (European Commission, Joint Research Centre - JRC) Normann Rion (CY Cergy Paris Universit and CEPREMAP) S bastien Villemot (CEPREMAP)The following people used to be members of the team: Abdeljabar Benzougar Alejandro Buesa Fabrice Collard Assia Ezzeroug D ra Kocsis St phane Lhuissier George PerendiaCopyright 1996-2023, Dynare is granted to copy, distribute and/or modify this document under the terms of the GNU Free Docu-mentation License, Version or any later version published by the Free Software Foundation; with no InvariantSections, no Front-Cover Texts, and no Back-Cover copy of the license can be found at Reference Manual , Release What is Dynare ?
5 Dynare is a software platform for handling a wide class of economic models, in particular dynamic stochastic gen-eral equilibrium (DSGE) and overlapping generations (OLG) models. The models solved by Dynare include thoserelying on therational expectationshypothesis, wherein agents form their expectations about the future in a wayconsistent with the model. But Dynare is also able to handle models where expectations are formed differently: onone extreme, models where agents perfectly anticipate the future; on the other extreme, models where agents havelimited rationality or imperfect knowledge of the state of the economy and, hence, form their expectations througha learning process. In terms of types of agents, models solved by Dynare can incorporate consumers, productivefirms, governments, monetary authorities, investors and financial intermediaries. Some degree of heterogeneitycan be achieved by including several distinct classes of agents in each of the aforementioned agent offers a user-friendly and intuitive way of describing these models.
6 It is able to perform simulations of themodel given a calibration of the model parameters and is also able to estimate these parameters given a dataset. Inpractice, the user will write a text file containing the list of model variables, the dynamic equations linking thesevariables together, the computing tasks to be performed and the desired graphical or numerical large panel of applied mathematics and computer science techniques are internally employed by Dynare : mul-tivariate nonlinear solving and optimization, matrix factorizations, local functional approximation, Kalman filtersand smoothers, MCMC techniques for Bayesian estimation, graph algorithms, optimal control, ..Various public bodies (central banks, ministries of economy and finance, international organisations) and someprivate financial institutions use Dynare for performing policy analysis exercises and as a support tool for fore-casting exercises. In the academic world, Dynare is used for research and teaching purposes in postgraduatemacroeconomics is a free software, which means that it can be downloaded free of charge, that its source code is freelyavailable, and that it can be used for both non-profit and for-profit purposes.
7 Most of the source files are covered bythe GNU General Public Licence (GPL) version 3 or later (there are some exceptions to this, see the file Dynare distribution). It is available for the Windows, macOS, and Linux platforms and is fully documentedthrough a Reference Manual . Part of Dynare is programmed in C++, while the rest is written using the matlab programming language. The latter implies that commercially-available matlab software is required in order torun Dynare . However, as an alternative to matlab , Dynare is also able to run on top of GNU Octave (basicallya free clone of matlab ): this possibility is particularly interesting for students or institutions who cannot afford,or do not want to pay for, matlab and are willing to bear the concomitant performance development of Dynare is mainly done at CEPREMAP by a core team of researchers who devote part of theirtime to software development. Increasingly, the developer base is expanding, as tools developed by researchersoutside of CEPREMAP are integrated into Dynare .
8 Financial support is provided by CEPREMAP, Banque deFrance and DSGE-net (an international research network for DSGE modeling).Interaction between developers and users of Dynare is central to the project. A web forum is available for userswho have questions about the usage of Dynare or who want to report bugs. Current known and fixed bugs arelisted on the Dynare wiki. Issues or whishes can be reported on our Git repository. Training sessions are giventhrough the Dynare Summer School, which is organized every year and is attended by about 40 people. Finally,priorities in terms of future developments and features to be added are decided in cooperation with the institutionsproviding financial Reference Manual , Release Documentation sourcesThe present document is the Reference Manual for Dynare . It documents all commands and features in a useful sources of information include the Dynare wiki and the Dynare Citing Dynare in your researchYou should cite Dynare if you use it in your research.
9 The recommended way todo this is to cite the presentmanual, as:St phane Adjemian, Houtan Bastani, Michel Juillard, Fr d ric Karam , Ferhat Mihoubi, WilliMutschler, Johannes Pfeifer, Marco Ratto, Normann Rion and S bastien Villemot (2022), Dynare : Reference Manual , Version 5, Dynare Working Papers, 72, CEPREMAPFor convenience, you can copy and paste the following into your BibTeX file:@TechReport{Adjemianetal2022,author = {Adjemian, St\'ephane and Bastani, Houtan andJuillard, Michel and Karam\'e, Fr\'ederic andMihoubi, Ferhat and Mutschler, Williand Pfeifer, Johannes and Ratto, Marco andRion, Normann and Villemot, S\'ebastien},title = { Dynare : Reference Manual Version 5},year = {2022},institution = {CEPREMAP},type = { Dynare Working Papers},number = {72},}If you want to give a URL, use the address of the Dynare website: 1. IntroductionCHAPTERTWOINSTALLATION AND Software requirementsPackaged versions of Dynare are available for Windows ( , 10 and 11), several GNU/Linux distributions (De-bian, Ubuntu, Linux Mint, Arch Linux), macOS (12 Monterey ), and FreeBSD.
10 Dynare should work on othersystems, but some compilation steps are necessary in that order to run Dynare , you need one of the following: matlab , any version ranging from (R2014a) to (R2023a); GNU Octave, any version ranging from to , with the statistics package from Octave-Forge. Notehowever that the Dynare installer for Windows requires a more specific version of Octave, as indicated onthe download following optional extensions are also useful to benefit from extra features, but are in no way required: If under matlab : the Optimization Toolbox, the Statistics Toolbox, the Control System Toolbox; If under Octave, the following Octave-Forge packages:optim, io, Installation of DynareAfter installation, Dynare can be used in any directory on your computer. It is best practice to keep your modelfiles in directories different from the one containing the Dynare toolbox. That way you can upgrade Dynare anddiscard the previous version without having to worry about your own On WindowsExecute the automated installer ( the version number), and followthe instructions.