Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: format


From   Chiara Mussida <cmussida@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: format
Date   Sun, 29 Jul 2012 12:42:29 +0200

dear all,
i have a string variable of 18 lenght. This is my id and i need it
numerical. I proceeded with destring and i got a numerical variable in
double format. I tried to get it in the format %18.0f, but i realised
that stata does not maintain the original number. It approx each
variable and in this way i cannot get a unique id Per individual. Do
you know whether it is a problem of wrong format?
Thanks

-- 
Chiara Mussida
PhD candidate
Doctoral school of Economic Policy
Catholic University, Piacenza (Italy)
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index