Skip to content
Snippets Groups Projects
Commit 88004b51 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Userguide: replace obsolete shocks_file by initval_file

(cherry picked from commit 42c91151)
parent 52ef47f3
Branches
Tags
No related merge requests found
......@@ -40,7 +40,7 @@ pdftex}
\title{Dynare v4 - User Guide \\Public beta version}
\author{\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Tommaso Mancini Griffoli\\ tommaso.mancini@stanfordalumni.org}
\date{This draft: August 2011}
\date{This draft: January 2013}
\maketitle
......@@ -50,7 +50,7 @@ pdftex}
~\vfill
Copyright 2007-2011 Tommaso Mancini Griffoli
Copyright 2007-2013 Tommaso Mancini Griffoli
\bigskip
......
......@@ -146,7 +146,13 @@ To save your simulated variables, you can add the following command at the end o
\subsection{Referring to external files}
You may find it convenient to refer to an external file, either to compute the steady state of your model, or when specifying shocks in an external file. The former is described in section \ref{sec:ssshock} of chapter \ref{ch:solbase} when discussing steady states. The advantage of using Matlab, say, to find your model's steady state was clear with respect to Dynare version 3, as the latter resorted to numerical approximations to find steady state values. But Dynare version 4 now uses the same analytical methods available in Matlab. For most usage scenarios, you should therefore do just as well to ask Dynare to compute your model's steady state (except, maybe, if you want to run loops, to vary your parameter values, for instance, in which case writing a Matlab program may be more handy).\\
But you may also be interested in the second possibility described above, namely of specifying shocks in an external file, to simulate a model based on shocks from a prior estimation, for instance. You could then retrieve the exogenous shocks from the oo\_ file by saving them in a file called datafile.mat. Finally, you could simulate a deterministic model with the shocks saved from the estimation by specifying the source file for the shocks, using the \\ \mbox{\texttt{shocks(shocks\_file = datafile.mat)}} command.
But you may also be interested in the second possibility described above,
namely of specifying shocks in an external file, to simulate a model based on
shocks from a prior estimation, for instance. You could then retrieve the
exogenous shocks from the oo\_ file by saving them in a file called
datafile.mat. Finally, you could simulate a deterministic model with the shocks
saved from the estimation by specifying the source file for the shocks, using
the \\ \mbox{\texttt{initval\_file(filename = 'datafile.mat')}} command.
But of course, this is a bit of a workaround, since you could also use the built-in commands in Dynare to generate impulse response functions from estimated shocks, as described in chapter \ref{ch:estbase}. \\
\subsection{Infinite eigenvalues}
......
......@@ -72,7 +72,7 @@ Copyright: 1996-2013 Dynare Team
License: GFDL-NIV-1.3+
Files: doc/userguide/*.tex doc/userguide/*.bib doc/userguide/*.pdf
Copyright: 2007-2011 Tommaso Mancini Griffoli
Copyright: 2007-2013 Tommaso Mancini Griffoli
License: GFDL-NIV-1.3+
Files: doc/dr.tex doc/bvar_a_la_sims.tex
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment