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

st: Re: using by with graph

From   Daniel Wilde <>
Subject   st: Re: using by with graph
Date   Thu, 13 Dec 2007 13:30:34 +0000


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)


Daniel Wilde

--On 12 December 2007 15:53 -0200 Josť Maria Pacheco de Souza <> 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;
fax (11)3082-2920; (11)3714-2403
----- Original Message ----- From: "William Gould, StataCorp LP"
Subject: Re: st: Stata stops recognizing basic commands

Jo La Frite <> writes,

I am having a strange problem with Stata (Stata/SE 9.0 for Windows, I

Jo 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
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
9, that now might be a good time to consider upgrading to Stata 10, Jo.

-- Bill

*   For searches and help try:

*   For searches and help try:

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