Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Modifying -irf graph- output


From   "Michael S. Hanson" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Modifying -irf graph- output
Date   Thu, 15 Jun 2006 15:22:34 -0400

.

[Note: I have edited my original questions and Scott's reply to clarify further comments.]

On Jun 15, 2006, at 12:53 PM, Scott Merryman wrote:


On Jun 15, 2006, at 12:27 PM, I wrote:

1. How does one add a title to the whole plot?

2. How does one change the text of and/or remove the legend and the note?

3. How does one change/control the axis labels and titles? In
particular, I want to either change or delete the text that reads
"step" by default beneath the final row of subplots.
For 1. and 2. take a look at -byopts- option and the axis title can be added at the end.

For example:

irf graph irf, irf(test_irf) byopts(title(My Title) note("") ///
legend(off)) xtitle(Years) ytitle(My ytitle)
Thanks, Scott -- I had misinterpreted what -byopts- was designed to do, so I had not explored that option. -byopts(title())- resolves my first question above. I appreciate your or anyone else's input on aspects of these remaining questions:

2. -byopts(legend())- seems to support only a subset of the options of -legend-: basically, I have been able to get -off- and -pos()- to work, but none of the other options of -legend- I have tried (e.g., - order()-, -stack-, -size()-, -symx()-). Is this a "feature"? Or am I missing something?

3. The -xtitle- option (*outside* of -byopts-) addresses in part what I was after in the third question. However, -xtitle- only applies to the whole final row of subplots, as does -xlabel-. Is there a way to modify the x-axes on the other rows? (Or the y-axes for any column other than the first?)

4. An additional question, if I may be so bold: I would like to change the subtitles at the top of each subplot in a way that still conveys which response and impulse are plotted. For example, instead of "test_irf, lconsumption, lincome", I would like the (1,2) subplot to read, say, "Response of log(Y) to a log(C) shock". The -subtitle- option will allow one to change the text at the top of each subplot, but I haven't figured out how to specify the response and impulse variables within this option. Perhaps if it were possible to extract specific elements of r(response) and r(impulse)...? Also, I had hoped that labeling the variables would change what was shown in the subtitles, but (apparently) to no avail.

Thanks again for your assistance.

-- Mike


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index