Dear Stata-Community,
I am currently working on a paper in which I want to create a variable that indicates the number of respondents that mentioned unemployment as most important problem and indicated the same or plus/minus one value on a left-right scale as the party under observation. So in the end, I want a variable for each party in each country that indicates how many respondents, that are (+/-1) close on the left-right scale, said unemployment is the most important problem. Unfortunately, my dataset only contains a country variable (country), a most important problem variable with the unemployment-specification (qpp1==70101), a self-placement variable (qpp13) and eight different party-placement variables for all countries (qpp14_1 to qpp14_8). So my problem is that the Swedish Green Party might be the variable qpp14_3 while this variable in Belgium means a conservative party. The dataset contains 25.000 individual respondents and I want for each of the in qpp14_1 to qpp_14_8 mentioned parties how many potentially close respondents (+/-1) indicated unemployment as most important problem. My question now is: Is there any possibility to automatize this process?
I am using stata version 15.1 and would be very grateful for any ideas.
Thanks in advance!
Robin
Related Posts with Generating a new variable based on several specified conditions
ppml_panel_sg: RESET test (p-value)Hi, I am trying the RESET test (p-value) for a gravity model with fixed effects: (exporter-year, im…
Literature on Stata's Extended Regression Models (ERMs): is there any?I'm using extended probit (eprobit) and extended linear regression (eregress) in my dissertation. I'…
Recentered Influence Function (RIF) regression and decompositionDear all, Thanks to Prof. Baum the newest update to the package -rif- is now available, with the ver…
C:\Users\AppData\Local\Temp\ST_04000001.tmp * *not foundI´m converting spss files into .dta files through many loops and one of those is like the following …
Modifying the collapse option in the xtabond2 commandI am implementing system GMM using the xtabond2 command. The data series is very long. This long his…
Subscribe to:
Post Comments (Atom)
0 Response to Generating a new variable based on several specified conditions
Post a Comment