Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: reverse tab y, gen(d)
From
"Dimitriy V. Masterov" <[email protected]>
To
Statalist <[email protected]>
Subject
Re: st: reverse tab y, gen(d)
Date
Thu, 26 Sep 2013 15:05:34 -0700
-egen d = group(d2 d1)- seems to do the trick.
DVM
On Thu, Sep 26, 2013 at 2:49 PM, Dimitriy V. Masterov
<[email protected]> wrote:
> Is there a command that does the reverse of -tab y, gen(d)-? Say I
> have 10 dummy variables d1-d10, and I want to make a single
> categorical variable d that has values 1-10?
>
> DVM
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/