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
problem in a model because of collinear variables Hi I am estimating an environment kuznets curve, which generically can have the following specifica…
How to use tabstat's "format" option with estpost? Getting ErrorHi, I have a time variable in Stata internal form. I am trying to calculate it's summary statistics…
fuzzy fsQCA bestfit displaying few casesHello Statalist, I am conducting a fuzzy-set QCA using the 'fuzzy' package written by Longest &…
Measuring Cumulative Density/Area Under Kernel Density CurveThe objective of my analysis is calculate non-compliance to minimum wages at the industry-state-year…
Panel 2sls with multiple interations of endogeneous variablesI´m using Stata 14 with Windows 10 OS. I have 2 endogenous and 8 exogenous variables. I need to run…
Subscribe to:
Post Comments (Atom)
0 Response to Combining three byte variables into one
Post a Comment