Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: Generating dummies with xi

From   "Airey, David C" <>
To   "" <>
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:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index