Bookmark and Share

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: Generating dummies with xi


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: Generating dummies with xi
Date   Mon, 11 Apr 2011 22:43:16 -0400

If you don't care about interaction terms, use -tab-

 . tab myvar, gen(myvar_)

will generate variables myvar_1-myvar_n, one dummy for
each value of -myvar-.

cheers,
Jeph


On 4/11/2011 8:34 AM, emanuele mazzini wrote:
Dear all Stata users,
I just discovered the command xi to generate dummies, but I also
noticed that by default it omits one of the values. This is obvious on
one hand, but on the other hand, does anyone of you knows a way to
tell Stata to generate dummies for all groups and to omit none of
them?

Thank to all of you in advance,
Regards,
Emanuele.
*
*   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/


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1209 / Virus Database: 1500/3564 - Release Date: 04/10/11


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index