|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: creating dummy variables out of categorical variables
.
.
Doesn't -xi:- do the same thing?
bret
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Goldstein
Sent: Wednesday, July 16, 2008 10:04 AM
To: [email protected]
Subject: Re: st: creating dummy variables out of categorical variables
Look at the help for tabulate (one way)
you will see that you can go
ta catvar, gen(dummy)
to get a set of dummies
Rich
Murali Kuchibhotla wrote:
> Hello,
> I am trying to create dummy variables from a categorical
> variable that takes values from 1-9.Is there a quick and convenient
> way of doing this? My current option, which involves doing a series of
> "generate dummyi= (catvar==i)" seems tedious. Thanks.
>
> Murali
*
* 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/