Statalist The Stata Listserver


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

st: RE: Questiion: for with by


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Questiion: for with by
Date   Wed, 19 Apr 2006 17:56:08 +0100

There is no intrinsic incompatibility between -for- 
and -by:-. 

However, I assume, by Statalist convention, that
you are using Stata 9.2. If you are not, then you 
should have said so. 

In your situation, there is absolutely no reason 
to use -for- when -foreach- and -forvalues- are 
available. 

As several (very (experienced)) posters in recent threads
have emphasised, and also myself, 

trying to use -for- really is a very bad idea. 

Even the experts will find it difficult to help 
you if you go wrong. 

Nick 
[email protected] 

Andrea Mascotto
> Sent: 19 April 2006 17:38
> To: [email protected]
> Subject: st: Questiion: for with by
> 
> 
> Hi all,
> 
> As far as I know, with panel data, the command "for" does not 
> allow the use 
> of "by".
> How can I work with many variables using something like "for" 
> and, at the 
> same time, get things done by each cross section? Is there a way?
> 
> Thanks,
> Andrea 
> 
> 
> *
> *   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/



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