shocks

shocks — specifies shocks on deterministic or stochastic exogenous variables

Synopsis

shocks;
(1) DETERMINISTIC SHOCK STATEMENT | (3) STOCHASTIC SHOCK STATEMENT
[ (1) DETERMINISTIC SHOCK STATEMENT | (3) STOCHASTIC SHOCK STATEMENT ...]
end;

(1) var VARIABLE_NAME; periods (2) PERIOD STATEMENT; values EXPRESSION;

(2) INTEGER [: INTEGER] [INTEGER [: INTEGER] ...] ;

(3) (4) VARIANCE STATEMENT | (5) COVARIANCE STATEMENT | (6) STANDARD ERROR STATEMENT

(4) var VARIABLE_NAME = EXPRESSION;

(5) var VARIABLE_NAME , VARIABLE_NAME = EXPRESSION;

(6) var VARIABLE_NAME; stderr EXPRESSION;

Description

In deterministic context

For deterministic simulations, the shocks block specifies temporary changes in the value of an exogenous variables. For permanent shocks, use an endval block.

When specifying shocks on several periods, the values EXPRESSION must return either a scalar value common to all periods with a shock or a column vector with as many elements as there are periods in the periods statement just before it.

Example

shocks;
var e;
periods 1;
values 0.5;
var u;
periods 4:5;
values 0;
var v;
periods 4 5 6;
values 0;
var u;
periods 4  5   6;
values  1 1.1 0.9;
end;

In stochastic context

For stochastic simulations (available only in the Matlab or Scilab versions), the shocks block specifies the non zero elements of the covariance matrix of the shocks.

Example

shocks;
var e = 0.000081;
var e,u = phi*0.009*0.009;
var u = 0.000081;
var v; stderr 0.009;
end;

See also

Sigma_e