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: need graph help


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: need graph help
Date   Tue, 19 Apr 2011 10:52:41 -0500

Like this?

preserve
collapse obese,by(year male)
separate obese, by(male)
line obese? year
restore

Scott


On Tue, Apr 19, 2011 at 10:37 AM, Averett, Susan L
<[email protected]> wrote:
> Hi all: I am trying to do something that should be easy but I haven't had any luck. I simply want to graph the mean obesity proportion in my data over time by gender. In Stata I have the following. How can I make this into a line graph where I am graphing the trend in proportion obese over time? I really just want to graph the means below with year on the X-axis and proportion obese on the Y by gender. So for 1987, 12 percent of females were obese and 11.9 percent of males were obese. that would be the data point for 1987 etc.
> Can anyone help?
> thanks,
> Susan

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