Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[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: RE: RE: Simple panel data mean plot |

Date |
Thu, 24 Jun 2010 13:48:29 +0200 |

<> So my solution gives you a -graph bar-, which is not exactly what you wanted - and it cannot be -recast()- to a different -graph- type. Still: Use the -preserve-/-restore- route... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss Sent: Donnerstag, 24. Juni 2010 13:41 To: statalist@hsphsun2.harvard.edu Subject: st: RE: RE: RE: Simple panel data mean plot <> Of course you can: ************* use http://www.stata-press.com/data/r11/nlswork.dta, clear graph bar (mean) age, over(year) ************* You can also -preserve-/-restore- your way around the destruction of your data... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Yann DE MEY Sent: Donnerstag, 24. Juni 2010 13:25 To: statalist@hsphsun2.harvard.edu Subject: st: RE: RE: Simple panel data mean plot Thank you for this working solution. However, a method that does not clear/replace my current dataset would be more practical. I really feel like this is a simple 'problem' and hope there is another easy command? Yann -----Original Message----- From: n.j.cox@durham.ac.uk [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: donderdag 24 juni 2010 12:07 To: statalist@hsphsun2.harvard.edu Subject: st: RE: Simple panel data mean plot -collapse- first; then it's -twoway line-. Nick n.j.cox@durham.ac.uk Yann DE MEY I have a very simple problem: I have a panel dataset and would like to easily get an overview graph that plots the mean of all observations as a function of year and connects them with a line. Basically I want to plot the results from: table year, contents (mean VARIABLE) The 'mband' command is the closest I found, but this command uses the median and not the mean. * * 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/ * * 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/

**References**:**st: Simple panel data mean plot***From:*Yann DE MEY <yann.demey@uhasselt.be>

**st: RE: RE: Simple panel data mean plot***From:*Yann DE MEY <yann.demey@uhasselt.be>

**st: RE: RE: RE: Simple panel data mean plot***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: RE: RE: RE: Simple panel data mean plot** - Next by Date:
**RE: st: RE: Modifying the font size of the labels of a categorical variable** - Previous by thread:
**st: RE: RE: RE: Simple panel data mean plot** - Next by thread:
**st: RE: RE: RE: RE: Simple panel data mean plot** - Index(es):