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]
st: twoway graph, with by and combine
From
"Hoffman, George" <[email protected]>
To
"[email protected]" <[email protected]>
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/