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

st: creating a dummy


From   "Tumur Gunchinmaa" <t.gunchinmaa@stud.man.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: creating a dummy
Date   Thu, 26 Feb 2004 13:34:14 -0000

Hi all,
Thank you Nick for the last answer on the dummy. I have another 
question to ask about creating dummy.
I have a string variable called market (in the long format) which has 
19 different string "values" such as 
f1,f2,...f6,s1,...,s5,a1,...,a5,u1,u2,b1.
I would like to create 5 dummies which would group f1-f6 into 
dummy f, s1-s5 into dummy s, a1-a5 into dummy a and so on.
Is this possible?
Thanks.
Gunche

School of Economic Studies
University of Manchester
Oxford Road 
Manchester
M13 9PL
Tel +44-(0)161-275-4624
Fax +44-(0)161-275-4928
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index