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 
 
emanuele mazzini <[email protected]> 
To 
 
[email protected] 
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 <[email protected]>:
> .
>
> -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/