Long note in Footer

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.

Long note in Footer

Unread postby msrahman » Tue Jun 16, 2020 8:53 am

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
Attachments
Fig_3.rpf
(1.38 KiB) Downloaded 356 times
msrahman
 
Posts: 46
Joined: Wed Oct 31, 2012 2:32 pm

Re: Long note in Footer

Unread postby TomDoan » Tue Jun 16, 2020 10:23 am

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.
TomDoan
 
Posts: 7240
Joined: Wed Nov 01, 2006 5:36 pm

Re: Long note in Footer

Unread postby msrahman » Tue Jun 16, 2020 1:00 pm

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
Attachments
output.pdf
(41.6 KiB) Downloaded 350 times
experiment.rpf
(1.11 KiB) Downloaded 359 times
msrahman
 
Posts: 46
Joined: Wed Oct 31, 2012 2:32 pm

Re: Long note in Footer

Unread postby TomDoan » Tue Jun 16, 2020 3:17 pm

There's an overall limit of 256 bytes on a string, and it looks like you're running up against that.
TomDoan
 
Posts: 7240
Joined: Wed Nov 01, 2006 5:36 pm


Return to Graphics, Reports, and Other Output

Who is online

Users browsing this forum: No registered users and 1 guest

cron