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
wanted = 1 if cumulative 15 trading days of risk = 1Dear All, I found this question here https://bbs.pinggu.org/thread-7813996-1-1.html。The data set is …
Multiple loop commands into one, "program error: code follows on the same line as open brace”Hi everyone, I have a panel data set that consists of portfolio weights of 25 different currencies …
Extension of maximum number of variables by "maxvar" is not possible:I have Stata 15 with a Stata/SE license. So extension of memory space should be possible. However us…
How to test moderating effect in time series analysis?Hi all, I am beginner in analyzing data with STATA. I have some problem to choose the suitable meth…
Transforming data in a Correlation MatrixDear all, I'm having a 410x410 correlation matrix, which looks like this A B C D A 1 0.1 0.2 …
Subscribe to:
Post Comments (Atom)
0 Response to Combining three byte variables into one
Post a Comment