I am currently trying to replicate some of the results of the Charles and Guryan 2008 paper 'Prejudice and wages'. One of the variables they construct is called racpeers and in the appendix it says it is 'an aggregation of three questions about whether you would object to sending your kids to a school that had few/half/most black students.'
It is constructed from the following three yes/no variables (answers to whether you object sending your kids to a school with _ students of another race' ALL BYTE VARIABLES
1) racfew
- object?
yes
no
2)rachaf
-object?
yes
no
3|)racmost
-object?
yes
no
All three are byte variables with 1 assigned to yes and 2 to no. In the paper, they assign the lowest number to least racist views and the highest to most racist (starting from 1 and increasing)
From what I understand, the views from least racist to most racist should be:
LEAST RACIST:
1- dont object to racmost
2- don't object to rachalf
3-don't object to racfew
4-object to racmost
5- object to rachaf
6- object to racfew
MOST RACIST
How would you make this one variable out of the three as I mention above? The data is taken from multiple waves of GSS so not everyone in the dataset answers these questions.
Related Posts with Combining three byte variables into one
Searching for variable string content into another string variableI have interviewed heads of households and asked their fathers' names. In some cases the father is a…
Pre and post eventHello, I am using Stata 16.1 and I have the following data: gvkey fyear pifo 007435 2015 2424 00…
cmxtmixlogit - expected probabilities and sign of margin effects First of all, I would like to say that it is my first thread in Statalist. I apologize for any mist…
Generate new variable pasting numbers or textHello, I'm working with U.S natality birth data, and I need to merge this data by year and county wi…
Creating a New VariableHello Statalist Folks, I have the following annual public survey data where children are being coun…
Subscribe to:
Post Comments (Atom)
0 Response to Combining three byte variables into one
Post a Comment