Data handling strategies

aggregate out = summary.sav /break = ghid
  /totinc = sum(indinc)
  /number = n.
 . . .
get file summary.sav.
compute aveinc = totinc/number.

AGGREGATE OUTFILE={file} [/MISSING=COLUMNWISE] [/DOCUMENT]
                  {*   }
 [/PRESORTED] /BREAK=varlist[({A})][varlist...]
                              {D}
  /aggvar['label']aggvar['label']...=function(arguments)[/aggvar ...]

SUM     Sum                      MEAN   Mean
SD      Standard deviation       MAX    Maximum
MIN     Minimum                  PGT    % of cases gt value
PLT     % of cases lt value      PIN    % of cases between values
POUT    % of cases not in range  FGT    Fraction gt value
FLT     Fraction lt value        FIN    Fraction between values
FOUT    Fraction not in range    N      Weighted n
NU      Unweighted n             NMISS  Weighted n of missing
NUMISS  Unweighted n of missing  FIRST  First nonmissing
LAST    Last nonmissing

UL Sociology
© Brendan Halpin (e-mail)23-Apr-2012
Department of Sociology, University of Limerick
Taught programme: MA in Sociology (Applied Social Research),
Short course, May 14/15 2012: Categorical Data Analysis for Social Scientists