Hi everyone,
I need some help. I got this data set ('data.sav') with different coded transcripts on it. Each transcript is marked with the variable PD and holds different utterances marked with variable SY. Some of the utterances are splitted into few records. It looks like this: PD SY CODE1 CODE2 CODE3 CODE4 1 2 1 0 1 0 1 5 1 0 0 1 1 5 0 1 1 1 1 6 0 1 1 1 1 8 1 1 0 0 1 8 1 0 0 1 1 9 1 1 0 0 2 5 1 0 0 0 2 5 0 0 1 1 2 5 1 1 1 1 2 7 1 1 1 0 2 7 1 0 0 0 3 3 0 0 1 1 3 3 1 1 1 0 3 4 1 0 0 1 3 5 0 0 0 0 Now what I would like to have eventually is a sum aggregation for each SY but only inside It's own specific PD. Meaning for pd=1 all records named SY=X will be summerized but only as long as pd=1. It should look like this: PD SY CODE1 CODE2 CODE3 CODE4 1 2 1 0 1 0 1 5 1 1 1 1 1 6 0 1 1 1 1 8 2 1 0 1 1 9 1 1 0 0 2 5 2 1 2 2 2 7 2 1 1 0 3 3 1 1 2 1 3 4 1 0 0 1 3 5 0 0 0 0 Hope that was clear enough, Will appreciate your help! Uri. |
Administrator
|
Please look up the AGGREGATE command in the syntax reference.
It should be self explanatory! ---
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
Got it! 10x! On Mon, Apr 7, 2014 at 4:13 PM, David Marso [via SPSSX Discussion] <[hidden email]> wrote: Please look up the AGGREGATE command in the syntax reference. |
Free forum by Nabble | Edit this page |