HISTORY.RPF example

Use this forum for posting example programs or short bits of sample code.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

HISTORY.RPF example

Unread post by TomDoan »

This is a revised (August 2016) version of the example for historical decomposition for a VAR. This adds a different style graph (shown in the PDF) which does the accumulated effects of the shocks using a stacked bar graph. This makes use of several features added to GRAPH with RATS v9:
  • STYLE=STACKED will stack positive values up and negative values down.
  • The SERIES and STYLE options make it easier to put a large number of series into a graph by using a VECT[INT] for the "handles" of the series with the STYLE option giving the style numbers.
history.rpf
Program file
(3.64 KiB) Downloaded 1055 times
history_canada_new.png
history_canada_new.png (24.13 KiB) Viewed 3972 times
While this new style graph is quite attractive, it has several important drawbacks.
  1. Stacked bar graphs generally, and the positive-up and negative-down graphs specifically, are hard to follow for any series other than the first one because of the moving baselines.
  2. The overall effect of shocks on the dependent variable is the difference between the up and the down, but the visual cue is to add since that's overall length of the bar.
  3. This looks fine in color. Try to convert that to black and white to put it into a journal, and you can't tell what's going on.
Attachments
oecdsample.rat
Data file
(243.5 KiB) Downloaded 952 times


Last bumped by TomDoan on Thu Aug 11, 2016 2:37 pm.
Post Reply