SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 

 View Only
  • 1.  Recoded Variables

    Posted Wed May 03, 2023 09:30 AM

    Hello,

    New to SPSS.  As I work through a data data set and recode, I am wondering if I can recode multiple variables differently. Perhaps I am doing this incorrectly.  For example, I am recoding income into three groups and also reported stress (on a 1-10 Likert scale). However, when I try to recode the the second variable (stress level) it messes up how the first (income) was recoded.  Any advice?

    Thank you!



    ------------------------------
    Erik Thomas
    ------------------------------


  • 2.  RE: Recoded Variables

    Posted Wed May 03, 2023 09:40 AM

    Hi. Check the Command syntax reference guide or online help to see how to RECODE different variables if you want different schemes for different variables. For example:

    RECODE V1 TO V3 (0=1) (1=0) (2,3=-1) (9=9) (ELSE=SYSMIS)
      /QVAR(1 THRU 5=1)(6 THRU 10=2)(11 THRU HI=3)(ELSE=0).

    Note the slash before QVAR, since V1, V2, and V3 use different recode settings than QVAR does.



    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------