Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: problem with numlist in forvalues


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: problem with numlist in forvalues
Date   Fri, 11 Mar 2005 16:31:11 -0000

-forval- does not accept all possible numlists. 

The documentation doesn't claim this and 
it doesn't do it anyway. 

The limit is thus not the issue. You 
need to use -foreach-. 

Nick 
n.j.cox@durham.ac.uk 

Daniel Mueller
 
> I have a longer -numlist- to process with -forvalues-. I 
> can't see why the following does not work:
> 
> forval n = 100(100)1000 1000(500)5000 5000(1000)10000 
> 10000(5000)50000 50000(10000)100000 {
> invalid syntax
> r(198);
> 
> -whelp limits- says the limit of a -numlist- is 1,600. I 
> have 36 above. And the actual list in my example is even 
> longer than that.
> 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index