Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: need graph help


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
<averetts@lafayette.edu> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index