Sum for cases

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sum for cases

nina
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

Reply | Threaded
Open this post in threaded view
|

Re: Sum for cases

Andy W
See the AGGREGATE command.
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/