SPSS Statistics

SPSS Statistics

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


#Analytics
#SPSSStatistics
#Analyticstools
 View Only
  • 1.  PROBLEM: making risk groups

    Posted 10/10/22 11:39 AM
    Hello sweet IBM community,
    I've encountered a problem when analysing a dataset. Simply put, i have a variable that is a factor with a range between 0 tot 1. Now i want to make 3 groups within this variable where i lable all cases with a factor between 0 to 0.33, 0.34 to 0.67, and 0.68 to 1. How do i do this? I've been searching on the internet but i haven't been able to find an answer.

    ------------------------------
    Daniel van Lammeren
    ------------------------------

    #SPSSStatistics


  • 2.  RE: PROBLEM: making risk groups

    Posted 10/10/22 12:41 PM
    Edited by System Admin 01/20/23 04:48 PM
    Hi. Try:

    RECODE x (0  thru 0.33=1) (0.34 thru  0.67=2) (0.68 thru 1=3). 

    * Check.. 

    FREQ VAR x.

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



  • 3.  RE: PROBLEM: making risk groups
    Best Answer

    Posted 10/10/22 01:11 PM
    Sorry. THRU, not TO:

    RECODE x (0  thru 0.33=1) (0.34 thru  0.67=2) (0.68 thru 1=3). 

    * Check.. 

    FREQ VAR x.

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



  • 4.  RE: PROBLEM: making risk groups

    Posted 10/12/22 11:30 AM
    Hey thanks a bunch! 
    it did the trick :)

    ------------------------------
    Daniel van Lammeren
    ------------------------------