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 on April 23, and its replacement, statalist.org is already up and running.


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

RE: st: twoway graph, with by and combine


From   "Airey, David C" <david.airey@vanderbilt.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: twoway graph, with by and combine
Date   Sun, 1 May 2011 10:28:16 -0500

.

Nice tip.

> **
> **or build the command using macros 
> **** to avoid manually typing all categories of your ID:
> 
>  levelsof rep78, loc(ll)
>  foreach v in `ll' {
>  	loc gr (lfit price mpg if rep78==`v')  `gr'
>  	}
> 
> tw (scatter price mpg) `gr' ,  ///



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