Size: 260
Comment:
|
Size: 572
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 19: | Line 19: |
---- == Output == The '''`OUTPUT`''' statement is useful for creating aggregated or higher-level data. To aggregate the income of all cases in a group, try: {{{ proc summary data=LIBREF.TABLE; class GROUPID; var INCOME; output out=LIBREF.GROUPTABLE sum=GROUPINCOME; run; }}} |
SAS Summary
A procedure for data summarization. It is closely related to the MEANS procudure.
Contents
Usage
proc summary data=LIBREF.TABLE; var VAR; run;
Output
The OUTPUT statement is useful for creating aggregated or higher-level data.
To aggregate the income of all cases in a group, try:
proc summary data=LIBREF.TABLE; class GROUPID; var INCOME; output out=LIBREF.GROUPTABLE sum=GROUPINCOME; run;