Bookmark and Share

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: Breaking a categorical variable into a set of binary variables


From   Teresio Poggio <[email protected]>
To   [email protected]
Subject   Re: st: Breaking a categorical variable into a set of binary variables
Date   Fri, 5 Mar 2010 16:45:03 +0100

Probably you're referring to the option "generate" within the tab command:

use auto.dta, clear
tab make, g(brand_)

hope this helps
Teresio

On Fri, Mar 5, 2010 at 4:42 PM, Miranda Kim <[email protected]> wrote:
> Hello,
> I am a Stata v11 user, and I seem to remember coming across a command that
> generates 0/1 variables for each category of a categorical variable, but I
> don't remember what this was...
> Any ideas anyone?
> Many thanks and best wishes,
> Miranda
>
> *
> *   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/
>



-- 
____________________________________________________
dr. Teresio Poggio
LaboR - Dipartimento di Sociologia e ricerca sociale
Università degli studi di Trento
Via Verdi, 26
38100 Trento, Italy
Tel   +39 0461/881406
fax:  +39 0461/881348

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index