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
Which test? Values differ from zero significantly?Dear all, how I can check that the following values differ from zero significantly? 0 = expected v…
Summary statistics per cik per yearDear all, I have a sample of panel data which contains data on a main firm: cik, a given year: year…
Programming problem - computing ages of children per woman in a longitudinal data using data on births.Hello, I'm looking for help in optimizing my overly convoluted syntax when it comes to the question …
F statistic from logit model with survey dataHi, when performing logistic regression with survey data, is the reported F statistic actually resu…
How to deal with December/January issues when using mkdir to create directories from system datesHello all, Using Stata 15.1/IC I've been using a do file for the past 8 months or so that automati…
Subscribe to:
Post Comments (Atom)
0 Response to Need help combining my race variables into one categorical variable
Post a Comment