Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: the xi: command


From   "Daniel Muller" <[email protected]>
To   <[email protected]>
Subject   st: RE: the xi: command
Date   Thu, 4 Jul 2002 17:08:50 +0700

that'll do it:

gen a = (var==1) if var ~=.
gen b = (var==2) if var ~=.
gen c = (var==3) if var ~=.
gen d = (var==4) if var ~=.

etc.

Daniel

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Geerdsen Lars
> P
> Sent: Thursday, July 04, 2002 3:23 PM
> To: '[email protected]'
> Subject: st: the xi: command
>
>
> Hi all stata user,
>
> I am using the xi: command to construct dummy variables from categorical
> variables. My problem is that I would like the xi-command to not
> remove one
> of the dummies but I cannot in the manual find a command that turns this
> characteric off. Is it possible to keep all the dummy variables, or have I
> for the first time in my life found a limitation in a Stata command?
>
> Thanks a lot,
>
> Lars Geerdsen
> __________________________________
> Lars Pico Geerdsen
> PhD-student at the Economics Department.
> University of Copenhagen
> and
> The Danish National Institute for Social Research
>
> (+45)33480927 direct.
> (+45)33480800
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index