After more trying and utilizing some of this syntax, I give up. :)
This is my other problem - I had tried this with syntax recoding and through the program functions.
Recoding four Likert variables into one index -
I want to combine the responses to four questions into one index, with responses from 1-5.
Essentially, I am adding the response of each category for each question together.
Numeric NewVariable (F8.4).
RECODE OldA OldB Old13D OldG (1=1)(2=2)(3=3)(4=4)(5=5)(SYSMIS=SYSMIS) into NewVariable.
I get this...
>Error # 4672
>The number of variables to be recoded does not match the number of variables
>following the keyword INTO.
>Execution of this command stops.
I also tried writing the syntax with compute... but still not getting what I need.
Clearly, I do not know what I am doing. :)
------------------------------
A MC
------------------------------
Original Message:
Sent: Mon August 22, 2022 07:05 PM
From: A MC
Subject: Syntax Recoding
Hello (again)!
I have a feeling I will be posting here a lot.
I am trying to recode variables - this is what I got:
Numeric new variable (F8.4).
recode old variable to new variable (1,5,=11) (2,3,4=5) .
The new variable was generated, and I set up the values in the variable view with 11 as yes and 5 as no.
When I run the frequencies table, they all show up as missing system.
That makes me think of how I would integrate missing system??
recode old variable to new variable (1,5,=11) (2,3,4=5) (sysmis = sysmis).
Thanks again!
------------------------------
A MC
------------------------------
#SPSSStatistics