<< plt_dff Printings and graphs pltacf >>

grocer >> Printings and graphs > plt_impact_shock

plt_impact_shock

plots the result of a shock simulation

CALLING SEQUENCE

plt_impact_shock(db1,db2,boun,vari,transf,tit,arg1,...,argn)

PARAMETERS

Input

* 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

Output

* Nothing: results are displayed on screen

DESCRIPTION

Plots results of the a simulation of a shock on a model.

EXAMPLE

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')

AUTHOR

Éric Dubois 2019

Report an issue
<< plt_dff Printings and graphs pltacf >>