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

st: Generating a variable / Format problem?


From   "MA V" <ma_v@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Generating a variable / Format problem?
Date   Mon, 08 Aug 2005 04:42:08 +0000

Dear Stata users,
I have a variable called id with 10 digits. I used "format id %15.0f" in order to be able to see all the digits in Stata.
My question is the following:
When I do:
"gen temp=id
format temp %15.0f"
for some weird reason, the new variable "temp" comes out with numbers different from the variable "id". But I want these two variables to be exactly the same!
Do you know why this is happening and what is the solution for this problem?
Thanks for your help,
MA_V

_________________________________________________________________
Donít just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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