Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Nick Cox" <n.j.cox@durham.ac.uk> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: RE: RE: Re: AW: Create Dummy Variable |
Date | Tue, 29 Jun 2010 17:59:28 +0100 |
See also -dummieslab- from SSC. Nick n.j.cox@durham.ac.uk -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: 29 June 2010 17:52 To: statalist@hsphsun2.harvard.edu Subject: st: RE: Re: AW: Create Dummy Variable That depends on whether those names could be legal variable names. You are better off getting the real names into variable labels. (It's best not to delete what you are replying to. That's over-zealous, although sometimes better than the opposite extreme of deleting nothing.) Nick n.j.cox@durham.ac.uk Hobst the gen() option worked out great. Thank you. Is it also possible, that these newly generated variables are named after the brand name in new_brand? instead of name1, name1, etc * * 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/