Hello fellow Stata Users! I am a new user and am in need of some help.
I have several race variables (Black, White, Asian...) in Boolean format containing a 1 for yes and a . for no. Some records have 1's for multiple race categories (for example, someone identifying as both Black and Asian). I need help writing syntax that would take the 1's and list those race categories in the records "RaceDisplay" variable.
So in this example, In the "RaceDisplay" variable, "Black Asian" would be listed for that record.
Any help would be appreciated. Thank you!
Related Posts with Listing the var name in a specified field rather than the value - Syntax help?
Interpretation coefficientsHi all, I was wondering if someone could help me out with some questions I have regarding the inter…
RegressionHi, I have a question according to the significance of my data. The following graph shows the size …
Adding character to string variable depending on the length of characters in the same stringHi, I've got a string variable, which should have 10 characters. I need to add a "0" in the front o…
Appending multiple filesHi all, I have 135 .dta files on a folder each for one month from 2004m1 to 2018m12. The files are …
Is it possibly to export xttrans results to Excel table?Hello! I am trying to figure out how to export results from xttrans command to an Excel file. My com…
Subscribe to:
Post Comments (Atom)
0 Response to Listing the var name in a specified field rather than the value - Syntax help?
Post a Comment