Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: tslines for categories


From   "Scott Merryman" <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: tslines for categories
Date   Wed, 20 Aug 2008 18:52:07 -0500

-xtline p, over-

Scott


On Wed, Aug 20, 2008 at 4:56 PM, Caleb Southworth <caleb@uoregon.edu> wrote:
> What is a compact way to graph tslines for categories of another variable?
> For example, if I want to graph a proportion (p) that varies over time
> (year) by state.
>
> -tsset state year-
> -twoway (tsline p if state==1) (tsline p if state==2)-
>
> How can this be done without having a tsline command for each category?
>
> Caleb Southworth
> Associate Professor
> University of Oregon Sociology
*
*   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   |   What's new   |   Site index