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
Analyzing individual quiz scores with group quiz scoresDear Statlist experts,
I have a data set of the performance of graduate course participants (n=30).…
Calculating stable ratios in given time period for given firms in panel data setHi,
I have a panel data set containing choosen financial data for thousands of companies. Some compa…
The perpetual inventory method (PIM)Hi dear Statalists,
Is there any specialist who can help me to translate this statement into Stata …
Extracting the first number from a variable nameHello,
I have data that looks like the following
Code:
* Example generated by -dataex-. For more …
Constructing panel data setHi
I am trying to construct a panel dataset comprised of yearly observations of import values for d…
Subscribe to:
Post Comments (Atom)
0 Response to Need help combining my race variables into one categorical variable
Post a Comment