@Zad wrote:
I don't really know. SPSS has this syntax COUNT Count4J=PSTATE_ADVEN_r FUN POWER(4).
From what I can tell it does this, for every entry of a 4 in the variable list count. I will have to confirm by running in SPSS and the code below in SAS to compare the results. if PSTATE_ADVEN_r=4 and FUN^=4 and POWER^=4 then count4J=1; else if PSTATE_ADVEN_r^=4 and FUN=4 and POWER^=4 then count4J=1; else if PSTATE_ADVEN_r^=4 and FUN^=4 and POWER=4 then count4J=1; else if PSTATE_ADVEN_r=4 and FUN=4 and POWER^=4 then count4J=2; else if PSTATE_ADVEN_r^=4 and FUN=4 and POWER=4 then count4J=2; else if PSTATE_ADVEN_r=4 and FUN^=4 and POWER=4 then count4J=2; else if PSTATE_ADVEN_r=4 and FUN=4 and POWER=4 then count4J=3;
I see that @FreelanceReinh has given you a correct answer. However, for the future, I point out that an answer of "I don't really know" doesn't really advance our understanding and doesn't move us closer to providing help. SPSS syntax doesn't advance our understanding either. Either show us documentation for this COUNT function, or figure it out enough so you can explain.
... View more