Hello Everyone,
I am trying to create a 7-point scale for attitudes towards abortion for every decade using GSS from 1980 to 2021. So, the command I used for the 1980s is
gen scale_1980s= (abany*2 + abdefect*.3 + abnomore*1.5 + abhlth*.1 + abpoor*1.5 + abrape*.3 + absingle*1.3) if year==1980 | year==1982 | year==1983| year==1984 | year==1985 | year==1987 | year==1988 | year==1989
I have given values to each variable based on response frequency. If a variable has a higher response, it has lower values. For example, 81.94 percent supported abortion ofr rape (abrape). Thus, it has a value of 0.2.
Is this the correct way of doing it?
Related Posts with Creating an Abortion scale
Comparing data at two time pointsHi, I have asked participants a question at Time 1 and Time 2. Is there any coding that could tell m…
Sum observations in different lines into one (by ID)Hello everyone, I'm trying to add observations in different lines into one line by ID. Below is t…
Use local macro and mkdir to create multiple foldersHi all, I'm trying to run the following code to create a loop of creating multiple folders at once.…
Matching cases and controls 1:5Hi, I would like to match cases and controls. I have got a variable saved as case where 1=case and …
Bar graph comparing full sample mean with means by groupHi everyone, I'm not quite sure how to phrase this request, but I want to create a bar graph that s…
Subscribe to:
Post Comments (Atom)
0 Response to Creating an Abortion scale
Post a Comment