I am trying to label a graph but some reason this not picked up. The graph is plotted at this portion of the code:
Then this is followed by the command below. I have moved this up but can get it to plot the graphs.
Any help please?
Hello Ozey! I'm happy to help, but for some reason the code seems to be missing from your question. If you can repost, I'll be happy to help.
Please find the code below.
/* Adding impulse responses and 90% confidence bands */
if graphs ne 1;
title("Impulse reaction function for s periods ahead");
Your code is using a mix of the old PQG graphics and the standard GAUSS graphics.
You have to choose one method. For the final graph, I would recommend that you do this:
struct plotControl myPlot; myPlot = plotGetDefaults("xy"); plotSetTitle(&myPlot, "Impulse reaction function for s periods ahead"); plotXY(myPlot, seqa(1,1,s),band1'~bet'~zeros(s,1)~band2');
The tutorial Basic Graph with Programmatic Customization explains this in more detail.
Thanks. I am using Gauss 13 and it does not seem to work.
I understand the portion of the code you posted and the tutorial require a minimum Gauss 14?
Have now managed to fixed the problem.
Running code portion by portion has solved it.
You should not have to run it a section at a time. What was the error you were getting?
The code run smoothly now.
I have commented out the second part of the code and let the first part plot the graph (with some modifications).
All good now.