
So, I apologize in advance if this question is easily solved. I am just to get back into SPSS after a few years of not using it. That it is actually this difficult is beyond belief! I simply want a new variable coding answers 1-8 instead. I have 8 categorical variables all coded 1 or blank. I tried this, and a few of the other recommendations didnt work for me. On Friday, 19:08:48 UTC+1, southernpsy wrote:

NewVar is set to 1 if the condition on the right is TRUE, and to 0 if Method 2 takes advantage of a very nice feature of SPSS. Number of cases read: 9 Number of cases listed: 9 The 3 (especially for less experienced SPSSers) methods 2 and 3 have

Method 1 is ~probably~ the most transparent of Ways I was considering before I saw David's MAX suggestion (which isĪlso included below). Usually there are several ways to get the job done. They are string variables for example- email. I cannot find anything on the web either. I am in the same boat where I am trying to merge 2 categorical variables into 1 where, one variable takes precedence over the other. > Here is a template of the syntax that worked for me: > Masculine Males, et cetera in post hoc analyses. > Self-Identified Gender Expression (1: Masculine 2: Equally or Neither > I had one variable for Sex (1: Male 2: Female) and one variable for I decided to post it here to the benefit of others. > I did not find an answer online, but I did eventually figure out how
Gvsu spss code how to#
> to determine how to combine two categorical into one variable in SPSS. > I am an SPSS novice, and I found this group recently when I was trying On Friday, 11:08:48 AM UTC-7, southernpsy wrote: Īnd Crosstab by that, or filter, or whatever. >Or is there a way I can capture the groups of drugs they are using?ĬOUNT numdr= COUNT( q0012_0001 to q00_0012). >Is there a way I can separate out all the responses that have 2 or more drugs in their responses? >There are loads of missing data because people obviously double/triple up on drugs. >VALUE LABELS drugsused 1 'Ketamine (K)' 2 'GBL/GBH' 3 'MDMA' 4 'Speed' 5 'Mephadrone' 6 'Crystal Meth (Tina)' 7 'Cocaine' 8 'Cannabis' 9 'Acid' 10 'Legal Highs' 11 'Steroids' 12 'Other' -1 'missing values'. >VARIABLE LABELS drugsused 'Drugs Used in the Last 6 Months'. Helpfully, the dataset I am using has decided to count each category as a separate variable. >The question is: Which - if any - of these drugs have you used in the last 6 months? there are 12 categories. I've encountered somewhat of another problem similar to the others but I don't know how I can rectify it. >This thread has been really useful for me. Or is there a way I can capture the groups of drugs they are using? Is there a way I can separate out all the responses that have 2 or more drugs in their responses? There are loads of missing data because people obviously double/triple up on drugs. VALUE LABELS drugsused 1 'Ketamine (K)' 2 'GBL/GBH' 3 'MDMA' 4 'Speed' 5 'Mephadrone' 6 'Crystal Meth (Tina)' 7 'Cocaine' 8 'Cannabis' 9 'Acid' 10 'Legal Highs' 11 'Steroids' 12 'Other' -1 'missing values'. VARIABLE LABELS drugsused 'Drugs Used in the Last 6 Months'. The question is: Which - if any - of these drugs have you used in the last 6 months? there are 12 categories.

This thread has been really useful for me. >Incorrect variable name: either the name is more than 64 characters, The first one will be called "Institutionalized Political Trust" (IPP) and the second one "non-Institutionalized Political Trust" (NIPP).Ĭan we recode into different variables (SPSS) in order to create the IPP variable out of the 4 initial variables and the NIPP variable out of the e remaining initial variables? So, IPP should be a new variable including initial variables 1-4 and the INPP should be a second new variable including initial variables 5-7.

The response categories are: yes, no, i don't remember. There are 7 different variables in our survey: 1)contacted a politician, government, or local government official?, 2)worked in a political party or action group?, 3)worked in another political organisation or association?, 4)worn or displayed a campaign sticker/ badge?, 5)signed a petition?, 6)taken part in lawful public demonstration?, 7)boycotted certain products?. I have a question on similar, but different grounds.
