by jd1090 » Sat Apr 16, 2016 2:43 pm
I'm not quite sure why you would need a sequence of shocks, but you could try using histval.
To generate positive and negative shocks is simple. Suppose you have a law of motion for tfp:
a=rho*a(-1)+e_a
This will generate a positive shock if you specify the shocks block in the standard way:
var e_a; stderr 0.01
If on the other hand you want to generate a negative shock, just use:
a=rho*a(-1)-e_a
Justas Dainauskas
Department of Economics and Related Studies
University of York
Heslington
York
YO10 5DD
United Kingdom