tab varname, gen(var)
-----Original Message-----
From: Joao Pedro W. de Azevedo [mailto:[email protected]]
Sent: Tuesday, July 22, 2003 11:24 AM
To: [email protected]
Subject: st: Xi or Desmat
Dear Statausers,
I would like to know if there is any command which would automatically
generate dummy variables out of a categorical variable. XI or DESMAT would
work, with the exception that they omit one category. In my case I need one
dummy variable every possible category. I've checked the archives and I've
found an exchange of email on this issue in July/2002. Some users suggested
that this option could be included in either XI or DESMAT... I would like to
know if anyone has come up with a ado file to do that. Suggestion will be
much appreciated,
Joao Pedro
*
* 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/