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


From   "Airey, David C" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index