Statalist


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

Re: st: How to label the value 999999999999


From   Caleb Southworth <[email protected]>
To   [email protected]
Subject   Re: st: How to label the value 999999999999
Date   Tue, 7 Oct 2008 15:02:27 -0700 (PDT)

That's right. You cannot have a label that long. So: 

. tostring var, g(var2)
var cannot be converted reversibly; no generate

. tostring var, g(var2) force
var2 generated as str11
var2 was forced to string; some loss of information

Perhaps -mvdecode- would be the way to go. So:

mvdecode var, mv(999999999999)

then, to use codebook or whatever,

mvencode var, mv(999999999999)

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index