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 on April 23, and its replacement, statalist.org is already up and running.


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

st: AW: Create Dummy Variable


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Create Dummy Variable
Date   Tue, 29 Jun 2010 18:21:17 +0200

<> 


See - h xi-, -h fvvarlist- or -h tab- with the -gen()- option.



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Hobst
Gesendet: Dienstag, 29. Juni 2010 18:19
An: statalist@hsphsun2.harvard.edu
Betreff: st: Create Dummy Variable

I have a Variable called New_Brand, it consists of 56 different Brand names.
Is there a command, which lets me create a dummy variable for each of the
brand? Sorry for the noob question, but i dont get it.
I tried it with foreach but didnt get it right 
-- 
View this message in context:
http://statalist.1588530.n2.nabble.com/Create-Dummy-Variable-tp5235676p52356
76.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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   |   Site index