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

st: 2k problem in forvalues


From   "Hans J. Baumgartner" <[email protected]>
To   statalist <[email protected]>
Subject   st: 2k problem in forvalues
Date   Wed, 27 Nov 2002 16:44:19 +0100

I would like to use -forvalues- to run loops over the years 84-02. It works fine from 84-99 but in 2000 I get problems. I have tried to run the loop 00-02 separately to avoid the "2k flip". The thing is, however that –foreach- and forvalues- writes 00 as 0 and 01 as 1.

Any suggestions on this?
Hans

--
Hans J. Baumgartner Deutsches Institut für Wirtschaftsforschung (DIW Berlin)
German Institute for Economic Research
Abt. Staat / Dept. Public Economics
Königin-Luise-Str. 5; 14195 Berlin (Dahlem) Tel.: 030/89789-307; Fax.: 030/89789-114
http://www.diw.de


*
* 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