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

Re: st: RE: What's wrong with this "For" command?


From   FF NN <economist_mitbbs@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: What's wrong with this "For" command?
Date   Mon, 29 Sep 2003 22:25:32 -0700 (PDT)

Thanks a lot!

--- Kieran McCaul <kieran@dph.uwa.edu.au> wrote:
> for var ro_jcd02-ro_jcd10 : last_occu=@ if @!=.
> 
> > -----Original Message-----
> > From: owner-statalist@hsphsun2.harvard.edu
> > [mailto:owner-statalist@hsphsun2.harvard.edu]On
> Behalf Of FF NN
> > Sent: Tuesday, 30 September 2003 10:18 AM
> > To: statalist@hsphsun2.harvard.edu
> > Subject: st: What's wrong with this "For" command?
> > 
> > 
> > Dear Statalists,
> > I met some confusing problem and refered to the
> > reference book but haven't got any clue yet.
> > 
> > Here's my code in the do file:
> > 
> > ......
> > gen last_occu=ro_jcd01 
> >  
> > for ro_jcd02-ro_jcd10 : last_occu=@ if @!=. 
> > .....
> > 
> > 
> > Everytime the computer told me:
> > "ro_jcd02-ro_jcd10" invalid list type 
> > while these are valid variables in my dataset
> > 
> > I appreicate your help very much.
> > 
> > best,
> > FF
> > 
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product
> search
> > http://shopping.yahoo.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/


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.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/



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