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
xtivreg commandDear Stata community, I have run the 2SLS panel data, random effects model in stata. Is there any w…
confidence intervalmake a projection of the incidence rate of diabetes mellitus during the period 1995−1999, and provid…
Appropriate Discriptive Statistics: Log or Original DataDear All, I have log transformed my variables and want to provide descriptive stats. Would you advi…
Fixed Effects RegressionI have a regression model and I have to investigate the effect in different cases (with/without time…
Respahe to wide?Dear StataList-ers! I have the following dataset, focused on sexually-transmitted disease in USA (s…
Subscribe to:
Post Comments (Atom)
0 Response to Combining three byte variables into one
Post a Comment