How do I recode this independent, categorical variable

cachemony
Messages
2
Reaction score
0
I’m student at the University of Arizona. In my political science class, I need to use SPSS to calculate bivariate correlation between a categorical independent variable (Presidential or Parliamentary system) and a continuous dependent variable (various measures of democracy)

I’m using the Przeworski data set. My original independent variable in this set is called INST, which designates each state as a dictatorship 0, parliament democracy 1, mixed democracy 2, and a presidential democracy 3.

My question is: How do I recode this independent, categorical variable (INST) into two different variables (Presidential and Parliamentary), so it excludes the mixed democracies and dictatorships and allow me to run a correlation with my continuous dependent variables? So, I want to be able to recode INST into Presidential and Parliament variables and run them separately to see how each one correlates with my continuous dependent variables?



Thanks,
Noah
 
Physics news on Phys.org
If I understand this correctly, you do not want to code INST into 2 different variables. You want a single categorical variable, say, PRES which is = 1 if INST = 3, and PRES = 0 if INST = 1. Before doing this, however, you should exclude all observations where INST = 0 or 2.
 
I want to recode INST so I can run correlations of Presidential and Parliment systems separate from each other against my dependent variables?

Thanks,
Noah
 
If you exclude INST = 0 or 2, you cannot define two independent variables, e.g. PRES and PARL, because they will be perfectly correlated with each other: PRES + PARL = 1 or PARL = 1 - PRES.

OTOH, perhaps you are not aiming to exclude the 0's and the 2's; in which case you can define two independent variables PRES and PARL.
 
Check out www.youtube.com/mycsula for our newly completed series of online SPSS (now IBM Statistics) video tutorials.

Learn how to: define variables, enter data, run a paired samples t test, perform frequency analysis, use scripting and syntax files, create and edit charts and graphs, and much more.

Training modules cover a wide range of topics aimed at beginners to more advanced users. All videos include examples and instructions to help you with whatever area of research or analysis you are working on.

You can find these videos at www.youtube.com/mycsula. Check them out and subscribe to our channel today!

Thanks,

The ITS Online Training team

www.youtube.com/mycsula
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Back
Top