Note that Maarten was right and I was havering on this
point. A string variable is needed for your purposes.
A -double- will not suffice. Sorry about that.
Nick
[email protected]
Maarten buis
--- On Jul 23, 2007, at 8:32 PM, Susan Olivia wrote:
> > I think the culprit is due to having the id as numeric variable
> > that comes with 18 digits and stored as double as suggested by
> > Profs Buis and Cox.
As I said before, you can store only 16 digits in a double variable, so
the last two digits of the variable id are now random noice and do not
correspond to the variable id in your original dataset.
--- "Michael S. Hanson" <[email protected]> wrote:
> Assuming your original data are in Excel, I suspect you'd be in much
> better shape overall if you read the "id" variable in as a string
> from the start.
This is actually the only way to store all 18 digits of your id
variable.
*
* 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/