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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Graph of sum results |

Date |
Sat, 8 Aug 2009 00:21:42 +0200 |

<> *** clear* set obs 9 //year gen year=_n+1998 //observations expand 10 gen profit=rnormal(10000,1000) //get graph collapse (mean) profit, by(year) twoway (line profit year) *** HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of mt2235@columbia.edu Sent: Samstag, 8. August 2009 00:00 To: statalist@hsphsun2.harvard.edu Subject: st: Graph of sum results Hi, I am trying to make a line plot of the annual mean of a variable for the years 1999-2007. I am using the following command for the means: bysort year: sum profit How could I make a line plot of the nine means? Thank you for your help!! Margie * * 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/ * * 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/

**Follow-Ups**:**st: RE: RE: Graph of sum results***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**References**:**st: Graph of sum results***From:*mt2235@columbia.edu

- Prev by Date:
**st: Bug in Stata 11** - Next by Date:
**st: RE: RE: Graph of sum results** - Previous by thread:
**st: Graph of sum results** - Next by thread:
**st: RE: RE: Graph of sum results** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |