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, statalist.org is already up and running.


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

Re: st: Generating dummies with xi


From   emanuele mazzini <madsoenistata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Generating dummies with xi
Date   Mon, 11 Apr 2011 15:53:21 +0200

Then, if I want to make a regression with an indicator variable say
(for country1 ) it is sufficient to type: reg....i.country1?


2011/4/11 Airey, David C <david.airey@vanderbilt.edu>:
> .
>
> -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/
>

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