Statalist


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

st: Re: encode question


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: encode question
Date   Thu, 12 Feb 2009 21:39:57 +0100

<>

If all the variables that end up as strings are numerical, Austin`s oneliner is the way to go. If there are strings that you want -encode-d - which is what your subject line made me think - apply my solution afterwards...

HTH
Martin
_______________________
----- Original Message ----- From: "Arina Viseth" <arina@UDel.Edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, February 12, 2009 9:17 PM
Subject: st: encode question


Dear all,

I have a dataset that I imported from Excel using insheet. However, many numerical variables (I have about 200 variables) are now showed as string variables. My question is the following: how can I transform each string variable into numerical one - and also replicate their names - without having to encode manually each one of them?

Thank you very much in advance for any help, I would very much appreciate it.

Arina

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


*
*   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   |   What's new   |   Site index