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
"Airey, David C" <[email protected]>
To
"[email protected]" <[email protected]>
Subject
re: st: Generating dummies with xi
Date
Mon, 11 Apr 2011 08:07:05 -0500
.
-help xi- gives you the noomit option.
-tabulate x, generate()- is another way to create indicator variables.
-egen x, group(a b)- can be useful.
Stata 11 has factor variables now.
See -help xi- or -help fvvarlist-.
> 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/