Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: creating dummy variables out of categorical variables


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: creating dummy variables out of categorical variables
Date   Wed, 16 Jul 2008 17:09:37 +0200

- tabulate, generate- is for you :-)

Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Murali
Kuchibhotla
Sent: Wednesday, July 16, 2008 4:57 PM
To: [email protected]
Subject: st: creating dummy variables out of categorical variables


Hello,
      I am trying to create dummy variables from a categorical variable that

takes values from 1-9.Is there a quick and convenient way of doing this? My 
current option, which involves doing a series of "generate dummyi= 
(catvar==i)" seems tedious. Thanks.

Murali 


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