Hi,
I am new to stata and need help with the above complaints.
I have data that has a variable for Race_1 categorized into "1 = American Indian or Alaskan Native (AI), 2 =Asian, 3=Black or African American, 4=Multi, 5=Others (O) and 6=White. I have another variable, Ethnicity_1, categorized into 0=Not Hispanic (NH) and 1= Hispanic or Latino.
I want to create a variable race_ethnicity into the following categories 1=NHAI, 2=NHAsian, 3=NHblack, 4=NHmulti, 5=NHOthers, 6=NHwhite and 7=Hispanic or Latino.
I used egen race_ethnicity =group (Race_1 Ethnicity_1), label
tab race_ethnicity
I don't know how to proceed and am unsure if it's the correct code.
Please help out!
Related Posts with Need help combining my race variables into one categorical variable
-aweight- if only dependent variable represents an average/medianHi everyone, my data contains information of approx. 500 firms over a 7-year-period (quarterly obse…
Geocoding adviceDear STATA Community, I need some advice on geocoding: My sample has more than a million observati…
Mediation Analysis using medsensHi everyone, I am currently doing an mediation analysis using medsens. I think it is a user-written…
RD Plot with Evenly Spaced binsHi all, I am trying to run RDplot while choosing my number of evenly spaced bins. If I want to have …
Pseudo R2 for logit and mlogit in multiple imputationHello, I am using multiple imputation and survey data with a logit model and would like to calculat…
Subscribe to:
Post Comments (Atom)
0 Response to Need help combining my race variables into one categorical variable
Post a Comment