AGGREGATE
Summarises cases into groups: one row per group, or group statistics added back to every case.
Syntax
Section titled “Syntax”AGGREGATE /OUTFILE=* [MODE=ADDVARIABLES|REPLACE] | 'file.sav' | dataset /BREAK=varlist /newvar = FUNCTION(var [, args]) [/ …].Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | free-form body |
| Changes data | yes, undoable |
Specifications
Section titled “Specifications”- Functions: MEAN SUM SD VARIANCE MIN MAX MEDIAN N NU NMISS NUMISS FIRST LAST, and PGT/PLT/PIN/POUT, FGT/FLT/FIN/FOUT, CGT/CLT/CIN/COUT (percentage, fraction or count above, below, inside or outside values)
Examples
Section titled “Examples”AGGREGATE /OUTFILE=* MODE=ADDVARIABLES /BREAK=region /region_mean = MEAN(income) /n = N.- Frequency weights are honoured. Very large datasets are grouped out of core.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.