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: Create Dummy Variable


From   Hobst <tobias.friedli@access.uzh.ch>
To   statalist@hsphsun2.harvard.edu
Subject   st: Create Dummy Variable
Date   Tue, 29 Jun 2010 09:19:08 -0700 (PDT)

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-tp5235676p5235676.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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index