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?
Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?I use Stata 17 (24 cores). I am sorry that I cannot provide the reproducible example because this p…
Create graphsDear all, I have a dataset that contains the following string variables: "country" and "countrydest…
having issues plotting stock returns in panel dataDear statalist, i am trying to plot the stock return data for a panel data of some companies, howeve…
Determining level of significance between two median and between two catergorial variables, pre and post treatmentDear Stata community, I was wondering if anybody could help me with the following question. I am tr…
Average marginal effects of continuous variables by levels of a dichotomous variableHi, I run this four-way interaction model in Stata 14: xtreg Y c.X1##c.X2##c.X3##X4 Controls i.cou…
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