Page 1 of 1

Markers on the lines

Posted: Wed Mar 13, 2019 12:05 pm
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

Re: Markers on the lines

Posted: Wed Mar 13, 2019 2:08 pm
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?

Re: Markers on the lines

Posted: Wed Mar 13, 2019 10:28 pm
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