syntax - SPSS compute cases in different variables -


i using spss process data. eg. have data like

v1 v2 v3

258 235

236 567

123 987

576 234

678 456

for values of v3, wanna compute case of v1 minus former case of v2 236-235, 123-567, 576-987, 678-234

because have more 1 million data , , wanna loop compute

so how should write in syntax? thank you!

statistics automatically loops on cases. need write compute statement. if meant previous case "former case of v2", see lag function.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -