Login  Register

Sum for cases

Posted by nina on Jun 15, 2015; 1:44pm
URL: http://spssx-discussion.165.s1.nabble.com/Sum-for-cases-tp5729828.html

Dear all,

I need to compute the sum of a single variable for different groups of cases. E.g. assume X is the variable of interest, and I have cases 1 to 10. Now I need to compute the sums of X for cases 1 to 5 and for cases 6 to 10. Which syntax would you recommend?

Thanks,
Nina