Is there a command to split a categorical variable into binary variables? For example, splitting a "race" variable with values "white, black, hispanic" to three variables: race1, race2, race3 where race1 = 1 if race = "white" etc.
Just wondering if someone created a command like this since it would save a lot of time!
Related Posts with Is there a command for quickly splitting a categorical variable into multiple binary variables?
How to draw two base lines using coefplot command on stata.Hey! I'm trying to create a graph similar to the one attached with this post. I have two problems: 1…
Generating status variable for firmDear Statalist users, I have panel data for firms involved in international trade. t1 is my variabl…
Generating a date sheet/calendar in StataHi I have to generate a date sheet/calendar (week wise preferably) which looks at the application o…
Converting week to dateHi there, I'm currently working on a data that consist of 'date of birth' and 'gestational age' in …
-tabplot- (SSC) ignoring scheme-specific subtitle size?Dear Nick, I use -tabplot- from SSC in version 2.7.2 NJC 30 June 2017 and wonder why -tabplot- ignor…
Subscribe to:
Post Comments (Atom)
0 Response to Is there a command for quickly splitting a categorical variable into multiple binary variables?
Post a Comment