Creating a Case Number using the Compute Variable Function in SPSS
HTML-код
- Опубликовано: 23 авг 2024
- This video demonstrates how to create a case number using the “Compute Variable” function in SPSS. The SPSS system variable “$CASENUM” is used and its limitations reviewed.
Thanks! The part at the end where you explain the limitations of the function is particularly useful.
Thanks! If you then copy the values using the recode into another variable the values don't change when resorting etc anymore.
COMPUTE ID1 = $CASENUM + 1000.
EXECUTE.
RECODE ID1 (ELSE=Copy) INTO ID2.
EXECUTE.
What do I do if I need to create a large amount of cases for example more than 100 or more than 1000? Is there a way to do this without entering each case manually?
Very useful. Thanks!
Thank you, شكراً جزيلا
You're welcome!