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

Re: st: Generating State Dummies


From   <gaetano.coletta@casaccia.enea.it>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Generating State Dummies
Date   Tue, 21 Jun 2005 16:43:54 +0200

You con use xi command and it will generate n-1 dummies for your categorical variable.
Try typing:
xi i.state

Bye,
Gaetano


On Tue, 21 Jun 2005 07:49:52 -0400
"ALICE DOBSON" <alice_dobson@hotmail.com> wrote:

Dear Statalist members,
I have a panel data with each firm located in a particular state in the US.
firmid year state var1 var2 var3..........
0001 1992 ME
0001 1993 ME
0001 1994 ME
0001 1995 ME
0002 1992 MA
0003 1993 MA
0004 1994 MA
0005 1995 MA

How can I generate a state dummy for each observation?
Best,
Alice

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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