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?
using xtreg for decompositionHello, We have the following dataset: A limited panel in which an establishment is found in the sam…
Looking for help! EASI Model in R with STATA. Thanks!I am currently trying to follow a world bank paper to estimate EASI model in R with STATA. The paper…
Group observations by Sequential DateHi, I need to group observations by participant_id where observations are date sequential (ie end_da…
Runing the same merge m:m and getting different resultsHello, im working with a panel data of exports between one country and others. Each product have a u…
fracglm het() optionHi All, I run the following command fracglm pass2 location##year location##subject, link(logit) vc…
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