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: twoway graph, with by and combine


From   "Hoffman, George" <ghoffman@mcw.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: twoway graph, with by and combine
Date   Sun, 1 May 2011 09:44:14 -0500

I've got panel data  and want to display the by(id) linear fit lines  on one graph.
         twoway (fit y x, by(id)) 
works, but gives different plots for all id's.  combine is not an option for by in this command.

Is there a quick way, or user-written way, to get the above on one graph? 
Seems simple, but I can't find it.
Thank you in advance
George Hoffman

*
*   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