This file is indexed.

/usr/share/doc/dynare/dynare.html/Shocks-on-exogenous-variables.html is in dynare-doc 4.5.4-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 1996-2017, Dynare Team.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

A copy of the license can be found at http://www.gnu.org/licenses/fdl.txt. -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Shocks on exogenous variables (Dynare Reference Manual)</title>

<meta name="description" content="Shocks on exogenous variables (Dynare Reference Manual)">
<meta name="keywords" content="Shocks on exogenous variables (Dynare Reference Manual)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2any">
<link href="index.html#Top" rel="start" title="Top">
<link href="Command-and-Function-Index.html#Command-and-Function-Index" rel="index" title="Command and Function Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="The-Model-file.html#The-Model-file" rel="up" title="The Model file">
<link href="Other-general-declarations.html#Other-general-declarations" rel="next" title="Other general declarations">
<link href="Initial-and-terminal-conditions.html#Initial-and-terminal-conditions" rel="prev" title="Initial and terminal conditions">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Shocks-on-exogenous-variables"></a>
<div class="header">
<p>
Next: <a href="Other-general-declarations.html#Other-general-declarations" accesskey="n" rel="next">Other general declarations</a>, Previous: <a href="Initial-and-terminal-conditions.html#Initial-and-terminal-conditions" accesskey="p" rel="prev">Initial and terminal conditions</a>, Up: <a href="The-Model-file.html#The-Model-file" accesskey="u" rel="up">The Model file</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Function-Index.html#Command-and-Function-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Shocks-on-exogenous-variables-1"></a>
<h3 class="section">4.8 Shocks on exogenous variables</h3>

<p>In a deterministic context, when one wants to study the transition of
one equilibrium position to another, it is equivalent to analyze the
consequences of a permanent shock and this in done in Dynare through
the proper use of <code>initval</code> and <code>endval</code>.
</p>
<p>Another typical experiment is to study the effects of a temporary
shock after which the system goes back to the original equilibrium (if
the model is stable&hellip;). A temporary shock is a temporary change of
value of one or several exogenous variables in the model. Temporary
shocks are specified with the command <code>shocks</code>.
</p>
<p>In a stochastic framework, the exogenous variables take random values
in each period. In Dynare, these random values follow a normal
distribution with zero mean, but it belongs to the user to specify the
variability of these shocks. The non-zero elements of the matrix of
variance-covariance of the shocks can be entered with the <code>shocks</code>
command. Or, the entire matrix can be directly entered with
<code>Sigma_e</code> (this use is however deprecated).
</p>
<p>If the variance of an exogenous variable is set to zero, this variable
will appear in the report on policy and transition functions, but
isn&rsquo;t used in the computation of moments and of Impulse Response
Functions. Setting a variance to zero is an easy way of removing an
exogenous shock.
</p>
<p>Note that, by default, if there are several <code>shocks</code> or <code>mshocks</code>
blocks in the same <samp>.mod</samp> file, then they are cumulative: all the shocks
declared in all the blocks are considered; however, if a <code>shocks</code> or
<code>mshocks</code> block is declared with the <code>overwrite</code> option, then it
replaces all the previous <code>shocks</code> and <code>mshocks</code> blocks.
</p>
<dl>
<dt><a name="index-shocks"></a>Block: <strong>shocks</strong> <em>;</em></dt>
<dt><a name="index-shocks-1"></a>Block: <strong>shocks</strong> <em>(overwrite) ;</em></dt>
<dd>
<p>See above for the meaning of the <code>overwrite</code> option.
</p>
<p><em>In deterministic context</em>
</p>
<p>For deterministic simulations, the <code>shocks</code> block specifies
temporary changes in the value of exogenous variables. For
permanent shocks, use an <code>endval</code> block.
</p>
<p>The block should contain one or more occurrences of the following
group of three lines:
</p>
<div class="example">
<pre class="example">var <var>VARIABLE_NAME</var>;
periods <var>INTEGER</var>[:<var>INTEGER</var>] [[,] <var>INTEGER</var>[:<var>INTEGER</var>]]&hellip;;
values <var>DOUBLE</var> | (<var>EXPRESSION</var>)  [[,] <var>DOUBLE</var> | (<var>EXPRESSION</var>) ]&hellip;;
</pre></div>

<p>It is possible to specify shocks which last several periods and which can
vary over time. The <code>periods</code> keyword accepts a list of
several dates or date ranges, which must be matched by as many shock values
in the <code>values</code> keyword. Note that a range in the
<code>periods</code> keyword can be matched by only one value in the
<code>values</code> keyword. If <code>values</code> represents a scalar, the same
value applies to the whole range. If <code>values</code> represents a vector,
it must have as many elements as there are periods in the range.
</p>
<p>Note that shock values are not restricted to numerical constants:
arbitrary expressions are also allowed, but you have to enclose them
inside parentheses.
</p>
<p>Here is an example:
</p>
<div class="example">
<pre class="example">shocks;
var e;
periods 1;
values 0.5;
var u;
periods 4:5;
values 0;
var v;
periods 4:5 6 7:9;
values 1 1.1 0.9;
var w;
periods 1 2;
values (1+p) (exp(z));
end;
</pre></div>

<p>A second example with a vector of values:
</p>
<div class="example">
<pre class="example">xx = [1.2; 1.3; 1];

shocks;
var e;
periods 1:3;
values (xx);
end;
</pre></div>


<p><em>In stochastic context</em>
</p>
<p>For stochastic simulations, the <code>shocks</code> block specifies the non
zero elements of the covariance matrix of the shocks of exogenous
variables.
</p>
<p>You can use the following types of entries in the block:
</p>
<dl compact="compact">
<dt><code>var <var>VARIABLE_NAME</var>; stderr <var>EXPRESSION</var>;</code></dt>
<dd><p>Specifies the standard error of a variable.
</p>
</dd>
<dt><code>var <var>VARIABLE_NAME</var> = <var>EXPRESSION</var>;</code></dt>
<dd><p>Specifies the variance of a variable.
</p>
</dd>
<dt><code>var <var>VARIABLE_NAME</var>, <var>VARIABLE_NAME</var> = <var>EXPRESSION</var>;</code></dt>
<dd><p>Specifies the covariance of two variables.
</p>
</dd>
<dt><code>corr <var>VARIABLE_NAME</var>, <var>VARIABLE_NAME</var> = <var>EXPRESSION</var>;</code></dt>
<dd><p>Specifies the correlation of two variables.
</p>
</dd>
</dl>

<p>In an estimation context, it is also possible to specify variances and
covariances on endogenous variables: in that case, these values are interpreted
as the calibration of the measurement errors on these variables. This requires
the <code>varobs</code> command to be specified before the <code>shocks</code> block.
</p>
<p>Here is an example:
</p>
<div class="example">
<pre class="example">shocks;
var e = 0.000081;
var u; stderr 0.009;
corr e, u = 0.8;
var v, w = 2;
end;
</pre></div>

<p><em>Mixing deterministic and stochastic shocks</em>
</p>
<p>It is possible to mix deterministic and stochastic shocks to build
models where agents know from the start of the simulation about future
exogenous changes. In that case <code>stoch_simul</code> will compute the
rational expectation solution adding future information to the state
space (nothing is shown in the output of <code>stoch_simul</code>) and
<code>forecast</code> will compute a simulation conditional on initial
conditions and future information.
</p>
<p>Here is an example:
</p>
<div class="example">
<pre class="example">varexo_det tau;
varexo e;

&hellip;

shocks;
var e; stderr 0.01;
var tau;
periods 1:9;
values -0.15;
end;

stoch_simul(irf=0);

forecast;
</pre></div>

</dd></dl>


<dl>
<dt><a name="index-mshocks"></a>Block: <strong>mshocks</strong> <em>;</em></dt>
<dt><a name="index-mshocks-1"></a>Block: <strong>mshocks</strong> <em>(overwrite) ;</em></dt>
<dd>
<p>The purpose of this block is similar to that of the <code>shocks</code>
block for deterministic shocks, except that the numeric values given
will be interpreted in a multiplicative way. For example, if a value
of <code>1.05</code> is given as shock value for some exogenous at some
date, it means 5% above its steady state value (as given by the last
<code>initval</code> or <code>endval</code> block).
</p>
<p>The syntax is the same than <code>shocks</code> in a deterministic context.
</p>
<p>This command is only meaningful in two situations:
</p>
<ul>
<li> on exogenous variables with a non-zero steady state, in a deterministic setup,

</li><li> on deterministic exogenous variables with a non-zero steady state, in
a stochastic setup.
</li></ul>

<p>See above for the meaning of the <code>overwrite</code> option.
</p>
</dd></dl>

<dl>
<dt><a name="index-Sigma_005fe"></a>Special variable: <strong>Sigma_e</strong></dt>
<dd>
<p><em>Warning</em>
</p>
<p><strong>The use of this special variable is deprecated and is strongly
discouraged.</strong> You should use a <code>shocks</code> block instead.
</p>
<p><em>Description</em>
</p>
<p>This special variable specifies directly the covariance matrix of the
stochastic shocks, as an upper (or lower) triangular matrix. Dynare
builds the corresponding symmetric matrix. Each row of the triangular
matrix, except the last one, must be terminated by a semi-colon
<code>;</code>. For a given element, an arbitrary <var>EXPRESSION</var> is
allowed (instead of a simple constant), but in that case you need to
enclose the expression in parentheses. <em>The order of the
covariances in the matrix is the same as the one used in the
<code>varexo</code> declaration.</em>
</p>
<p><em>Example</em>
</p>
<div class="example">
<pre class="example">

varexo u, e;
&hellip;
Sigma_e = [ 0.81 (phi*0.9*0.009);
            0.000081];
</pre></div>

<p>This sets the variance of <code>u</code> to 0.81, the variance of <code>e</code>
to 0.000081, and the correlation between <code>e</code> and <code>u</code> to
<code>phi</code>.
</p>
</dd></dl>

<hr>
<div class="header">
<p>
Next: <a href="Other-general-declarations.html#Other-general-declarations" accesskey="n" rel="next">Other general declarations</a>, Previous: <a href="Initial-and-terminal-conditions.html#Initial-and-terminal-conditions" accesskey="p" rel="prev">Initial and terminal conditions</a>, Up: <a href="The-Model-file.html#The-Model-file" accesskey="u" rel="up">The Model file</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Function-Index.html#Command-and-Function-Index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>