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

st: RE: Re:


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re:
Date   Wed, 28 Sep 2005 17:50:28 +0100

The safer option here is -destring-. -real()- 
is dangerous if your ids are not all what you think 
they should be. 

Nick 
[email protected] 

[email protected]
 
> one suggestion:  the variables need to be consistent in terms of
> characater vs. numeric.  i suggest you make both variables 
> numeric; you
> can change the character one to numeric via -destring- or the string
> function -real- (see appropriate help files).  of course, if you have
> leading zeros in your character variable, you may need to do some
> additional manipulation.  

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