Markers on the lines

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Markers on the lines

Unread post by msrahman »

Hello,
In graphing impulse response functions, on the lines, I want to use markers (for example a cross or something) to indicate if the responses are significant at a particular horizon.

Anybody has any idea how can I do that?

Sincerely,
Sajjadur Rahman
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Markers on the lines

Unread post by msrahman »

One way it might be possible to overlay the particular points. But I am having problem to overlay two set of points on two different lines. I have attached my program and data file.
Any suggestion?
Attachments
Fig_4.xls
This is data file
(29.5 KiB) Downloaded 653 times
Fig_4.rpf
This is RATS program file
(631 Bytes) Downloaded 706 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Markers on the lines

Unread post by TomDoan »

You attached a different data set than the program uses. However, the following will give you two options. The first uses stacked bar graphs that are use different colors for the significant and insignificant entries:

set irfsignif = conv*(conv_a*conv_b>0)
set irfinsig = conv*(conv_a*conv_b<0)
graph(style=stacked) 2
# irfsignif
# irfinsig

The second dots the entries that are significant. If you had problems with overlay, you might have forgotten the OVSAME option---without it, it uses a different scale for the overlay series.

set irfmark = %if(conv_a*conv_b>0,conv,%na)
graph(style=dots,overlay=line,ovsame) 2
# irfmark
# conv
Post Reply