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

st: concat num var


From   "Wentworth, Seyda" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: concat num var
Date   Mon, 21 Oct 2002 15:15:38 -0400

Hi,
What is the easiest way to concat 4 numerical variables, each of various
lengths (3-9). I tried :

egen newvar=concat(var1 var2 ...) 

but got a newvar (16 to 18 digits) displayed in exponential format when it's
longer than 16 digits, which I don't want. I tried to change the storage
type and display format but wasn't able to see all 17 or 18 digits.
Thanks.
*
*   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