Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: xtline charts for large panel set


From   Tanuku AP <tanuku.ap@hotmail.com>
To   Stata <statalist@hsphsun2.harvard.edu>
Subject   st: xtline charts for large panel set
Date   Wed, 3 Aug 2011 15:42:54 -0400

Hello all,

I have a data set with roughly 3000 units.   The panel ids are not consecutively numbered.  I'd like to draw --xtline-- charts (w/out overlay) with roughly 20 charts in one frame.

If the panel ids were consecutive I could have used a loop with something like so:

xtline pvar if panelid > `x' & panelid < `x'+ 20    (PSEUDOCODE)
where x is the loop variable


TWO QUESTIONS:
(1) How can I draw --xtline-- charts for the 3000 units with 20 units at a time
(2) Is there a way to generate another variable that assigns consecutive numbers to panel ids




--
Thanks,
Tanuku 		 	   		  
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index