I am trying to sort data that has 4 possible categorical data options: Independent, Republican, Democrat, (blank). I am trying to make a confidence interval, but first I need to have the categorical variables be numeric characters instead, so I tried to sort them using: data=gss08_Q1; input=gss08; if polparty = 'independent' then polparty1 = 1; if polparty = 'rebublican' then polparty1 = 2; if polparty = 'democrat' then polparty1= 3; else polparty= 4; This returned with multiple of the same errors, am I using this wrong?
... View more