scatter y x if z==0 , mcolor(red) || scatter y x if z==1, mcolor(blue)
Nick
[email protected]
Nick Winter
> I don't know of a way to do it directly as you awnted, but
> you can avoid
> making new variables, by doing something liek:
>
> scatter y x if z==0 , mcolor(red) || y x if z==1, mcolor(blue)
> >I know I could accomplish this by
> >gen y0 = y if z==0
> >gen y1=y if z==1
> >scatter y0 y1x,mcolor(red blue)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/