[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: RE: Graph of sum results |

Date |
Sat, 8 Aug 2009 00:33:35 +0200 |

<> If you do find the idea of -collapse- destroying your original data creepy, you can of course -preserve- and -restore-, or go the -graph dot- route: *** clear* set obs 9 //year gen year=_n+1998 //observations expand 10 gen profit=rnormal(10000,1000) //get graph graph dot (mean) profit, over(year) *** HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Samstag, 8. August 2009 00:22 To: statalist@hsphsun2.harvard.edu Subject: st: RE: Graph of sum results <> *** 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/ * * 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**:**Re: st: RE: RE: Graph of sum results***From:*mt2235@columbia.edu

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

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

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

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