* QUESTION. How can I do a scatter plot for each member of the group, * and identify the position of the member in the chart. * ANSWER. * --------------------------DEFINE MACRO ----------------------. DEFINE !PRINT(!POS=!TOKENS(1)) !DO !counter = 1 !TO !1. compute you=0. if $casenum=!counter you=!counter. * You could use a chart template to have a differently shape symbol for the given member. GRAPH /SCATTERPLOT(BIVAR)=id WITH cumsco BY you /MISSING=LISTWISE . !DOEND. !ENDDEFINE. *----------------------------END OF MACRO ----------------. INPUT PROGRAM. LOOP id=1 TO 10. COMPUTE score=UNIFORM(50). END CASE. END LOOP. END FILE. END INPUT PROGRAM. compute cumsco=0. Do if $casenum=1. compute cumsco=score. else. compute cumsco = lag(cumsco)+score. end if. * Call macro. !PRINT 10.