[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Steven Proud" <steven_proud@hotmail.com> |

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

Subject |
st: Re: Re: using by with graph |

Date |
Thu, 13 Dec 2007 13:41:05 -0000 |

Depending on how your countrygroups are defined, I've assumed that they're 1 to 100 for instance.

local i=1

while `i'<=100 {

scatter data301 time if countrygroup==`i'

graph export group`i'.tif, replace

local i=`i'+1

}

This saves a graph as a tif file for all 100 country groups.

**********************************************

----- Original Message ----- From: "Daniel Wilde" <dgw24@bath.ac.uk>

To: <statalist@hsphsun2.harvard.edu>

Sent: Thursday, December 13, 2007 1:30 PM

Subject: st: Re: using by with graph

All,

Sorry if this question is too simple, but here goes:

I have a panel dataset. I want to create simple graphs for each unit (called countrygroup) across time. Initially I tried -

by countrygroup: scatter data301 time

But Stata tells me by does not work with scatter. I then tried

scatter data301 time, by countrygroup

This works but Stata puts all the graphs on one page. There are over 100 of them so they are too small to be useful. Is there anyway I can see each graph on its own page? Or save them individually. Is there a command for this. I know I could use the if function but this seems time consuming.

P.S (I am using Stata version 8.2)

Thanks

Daniel Wilde

--On 12 December 2007 15:53 -0200 José Maria Pacheco de Souza <jmpsouza@usp.br> wrote:

It is always a pleasure to read any explanation given by Bill Gould. José Maria Jose Maria Pacheco de Souza, Professor Titular (aposentado) Departamento de Epidemiologia/Faculdade de Saude Publica, USP Av. Dr. Arnaldo, 715 01246-904 - S. Paulo/SP - Brasil fones (11)3082-3886; (11)3083-4246; (11)3061-7747; (11)3768-8612; (11)3714-2403 fax (11)3082-2920; (11)3714-2403 www.fsp.usp.br/~jmpsouza ----- Original Message ----- From: "William Gould, StataCorp LP" <wgould@stata.com> Subject: Re: st: Stata stops recognizing basic commandsJo La Frite <jo_la_frite@yahoo.com> writes,I am having a strange problem with Stata (Stata/SE 9.0 for Windows, I haveJo has already gotten lots of good advice from the list. Some of that advice, however, as been of the form of "do this and hope" and then gone on to mention how serious the problem might be. Jo, I fear, may be more nervous than ever. Here's my advice: 1. From what Jo says, it appears that somehow Stata's official ado-files got erased or that Jo or some system administrator made some change in Stata's parameters so that Stata can no longer find its official ado-files. Good luck. I've gone through this from start to finish just to prove to you, Jo, that no matter what happens, we have a plan on how to deal with it. I work for StataCorp so now I am required to add, since you are running Stata 9, that now might be a good time to consider upgrading to Stata 10, Jo. -- Bill wgould@stata.com* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**st: RE: Re: Re: using by with graph***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: Re: using by with graph***From:*Daniel Wilde <dgw24@bath.ac.uk>

- Prev by Date:
**st: Re: using by with graph** - Next by Date:
**Re: st: Re: using by with graph** - Previous by thread:
**st: Re: using by with graph** - Next by thread:
**st: RE: Re: Re: using by with graph** - Index(es):

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