Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: using xtline to create panel data plots


From   "Brian P. Poi" <[email protected]>
To   [email protected]
Subject   Re: st: using xtline to create panel data plots
Date   Tue, 13 Sep 2011 15:02:04 -0400

On 09/13/2011 02:18 PM, Venkiteshwaran, Vinod wrote:
I have a panel data set for several industries spanning a twenty year time period.
The variable I am trying to plot is the value of a financial ratio across time for each industry.
The range of this ratio value differs by industry.
For eg. industry-1 has a range of (0 .0068227,  0.0537253) while industry-2 has a range of (0.0102397 ,  0.2309189) for the same ratio.
The overall sample range for this variable is (0,  0 .237276)
Is there anyway to get xtline to plot graphs for each industry panel using the range applicable to only that industry as opposed to the range for the entire sample.
I understand I can create the graphs one industry at a time to resolve this issue.

Thank you

Vinod


Vinod,

Use the byopts option "yrescale", like this:

. webuse grunfeld
. xtline invest, byopts(yrescale)

Brian Poi
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index