Page 1 of 1

Long note in Footer

Posted: Tue Jun 16, 2020 8:53 am
by msrahman
Hello,
I am trying to add the following note as a footer in a spgraph command. This is a long note. But RATS probably cannot read this long note as I received an error message.

footer="Note: Panels A, B, and C show the effects of an increase in the Fed's total assets on the indicated variables. Panel D shows the responses of \\ dividend growth to an increase in commercial and industrial lonas. Dotted lines show 90% confidence interval")

Error Message:

## SX2. Expected " to Terminate String
>>>>how 90% confidence<<<<

I have attached the file. Any help would be appreciated.

Sincerely,
Sajjadur Rahman

Re: Long note in Footer

Posted: Tue Jun 16, 2020 10:23 am
by TomDoan
The line is probably too long for the editor. You can split up the string by "adding" two substrings (with a $ to break the line between them), such as by:

Code: Select all

graph(footer="Note: Panels A, B, and C show the effects of an increase in the Fed's total assets on the indicated variables. Panel D shows the responses of \\"+$
 "dividend growth to an increase in commercial and industrial lonas. Dotted lines show 90% confidence interval")
# varlevel
Note that it generally makes more sense to put a long note like that into the caption on the graph in whatever application you're using to create a paper.

Re: Long note in Footer

Posted: Tue Jun 16, 2020 1:00 pm
by msrahman
Thanks for your reply. I followed your advice and wrote the following spgraph command with footer. As you can see in the attached output, the footer does not show "95% confidence interval". I have also attached the script.

spgraph(vfields=2,nosamesize,hfields=2,patterns,header="Figure 5. Transmission of the Fed's balance sheet shock into the stock market.", $
subheader="(Reserve channel)",footer= "Note: Panel A shows the effects of an increase in the Fed's total assets on reserve balances held by commercial banks."+ $
" Panels B and C show \\the responses of money supply and stock returns to an increase in total reserves, respectively."+ $
" Dotted lines show 95% confidence interval.")

Any help will be appreciated.

Sincerely,
Sajjadur Rahman

Re: Long note in Footer

Posted: Tue Jun 16, 2020 3:17 pm
by TomDoan
There's an overall limit of 256 bytes on a string, and it looks like you're running up against that.