In SPSS, how do I generate an ID variable that consecutively numbers each case in my data?
In SPSS, to generate an ID variable to consecutively number each case in your data, use the following command, which creates a variable called "id" and adds an ID number under the ID variable:
COMPUTE id=$CASENUM. FORMAT id (F8.0). EXECUTE.For more about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
This is document aqhw in domain all.
Last modified on May 04, 2011.
Last modified on May 04, 2011.







