plots the result of a shock simulation
plt_impact_shock(db1,db2,boun,vari,transf,tit,arg1,...,argn)
* db1 = a tsmat, representing the baseline
* db2= a tsmat, representing the database resulting from the simulation of the shock
* bound = a [2 x 1] string vector, the simulation bounds
* vari = a [n x 1] string vector, collecting the variable names belonging to the simulated model and the databases db1 and db2 that will be displayed
* transf = a [n x 1] string vector, collecting the ways the variables will be compared ('pcer' for in percentages, 'er' for in differences)
* tit = a string, the title of the graph
* arg1,...,argn = optional arguments that can be 'leg=x' if the user wants its own legend or any variable argument to function pltseries0
* Nothing: results are displayed on screen
global GROCERDIR // load the model small: load(GROCERDIR+'data\small.dat') // load the simulation results small_cale load(GROCERDIR+'data\small_db.dat') // recover the simulated database small_cale_db=small_cale('simulation results'); // make a 1% shock on the world demand sh_demmon=simul_shock(small,small_cale_db,'1981q1','2006q4',... list('demmon','pcer',1),'from=1980q1') // recover the corresponding simulated database sh_demmon_db=sh_demmon('simulation results'); // plots the results of the shock simulation on variables td_pib1 and // td_p6_d1 (in percentage) plt_impact_shock(small_cale_db,sh_demmon_db,['1981q1';'2006q4'],... ['td_p6_d1';'td_pib1'],['pcer';'pcer'],'impact of a 1% shock on world demand') | ![]() | ![]() |