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

st: RE: RE: Conversion to Hexadecimal


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Conversion to Hexadecimal
Date   Mon, 21 Jul 2003 10:38:11 +0100

Guillermo Cruces

> I just want to make clear why I prefer a string id over a
> numerical id.
> While I can store it as a long or double with no precision problems,
> I've had some difficulties with some operations. For instance, I
> sometimes need to egen - concat (say, "household id" and
> "person number"
> to get "perdon id") and I've had "rounding" problems with that, and
> being a number I cannot gen strX pid=hid+pernumber...

Please show an example. I don't see how this can happen
if you follow the golden rule that numeric ids be held
as integers.

Nick
[email protected]

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