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

st: Re^3: string variables


From   "Katsuhide Isa" <CQB01114@nifty.ne.jp>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re^3: string variables
Date   Sat, 7 Dec 2002 21:34:33 +0900

To Nick:

Thank you for your additional comment.

> If you look carefully, you will see that _11 alone 
> is string and cannot be used to create a numeric variable 
> without using some function or command to extract 
> numeric contents. So (e.g.) your loop will fail at _11. 

I see. Come to think of it, -forvalues- 'loops over consecutive 
values', so it's no wonder Stata returns an error message
when non-numeric variables are included in the varlist.

K.I. 


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