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: xtline three country lines
From 
 
Scott Merryman <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: xtline three country lines 
Date 
 
Fri, 13 Dec 2013 10:56:07 -0600 
You want or not and:
xtline y if country ==17 |  country ==6 | country ==12, overlay
or
xtline y if inlist(country, 6, 12,17), overlay
Or use -line-
line y year if  country ==6  ///
 || line y year if  country ==12 ///
 || line y year if  country ==17
Scott
On Fri, Dec 13, 2013 at 9:51 AM, DeMichele, Matthew <[email protected]> wrote:
> I have pooled data across 15 countries and 50 years. I want to provide a
> line graph of the trend of the outcome variable, but I want to overlay
> only three countries.
>
> I've tried several variants of:
>
> xtline y if country ==17 & country ==6 & country ==12, overlay
> no observations
>
> Any suggestions?
>
> Thank you.
> Matthew
>
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/