Chapter Contents |
Previous |
Next |
The REPORT Procedure |
Restriction: | You cannot use the COLUMN statement if you use REPORT= in the PROC REPORT statement. |
Featured in: | Selecting Variables for a Report , Using Aliases to Obtain Multiple Statistics for the Same Variable , Creating a Column for Each Value of a Variable , Displaying Multiple Statistics for One Variable , Calculating Percentages , and How PROC REPORT Handles Missing Values |
COLUMN column-specification(s); |
Required Arguments |
N | CSS |
NMISS | STDERR |
MEAN | CV |
STD | T |
MIN | PRT |
MAX | VAR |
RANGE | SUMWGT |
SUM | PCTN |
USS | PCTSUM |
For definitions of these statistics, see Keywords and Formulas . To compute standard error and the Student's t test you must use the default value of VARDEF= which is DF.
Featured in: | Selecting Variables for a Report and How PROC REPORT Handles Missing Values |
If you stack a statistic with an analysis variable, the statistic that you name in the column statement overrides the statistic in the definition of the analysis variable. For example, the following PROC REPORT step produces a report that contains the minimum value of Sales for each sector:
proc report data=grocery; column sector sales,min; define sector/group; define sales/analysis sum; run;
Interaction: | A series of stacked report items can include only one analysis variable or statistic. If you include more than one, PROC REPORT returns an error because it cannot determine which values to put in the cells of the report. |
Tip: | You can use parentheses to group report items whose headers should appear at the same level rather than stacked one above the other. |
Featured in: | Creating a Column for Each Value of a Variable , Displaying Multiple Statistics for One Variable , and Calculating Percentages |
In traditional (monospace) SAS output, if the first and last characters of a header are one of the following characters, PROC REPORT uses that character to expand the header to fill the space over the column or columns:
:- = \_ .* +
Similarly, if the first character of a header is < and the last character is >, or vice-versa, PROC REPORT expands the header to fill the space over the column by repeating the first character before the text of the header and the last character after it.
Featured in: | Calculating Percentages |
Featured in: | Using Aliases to Obtain Multiple Statistics for the Same Variable |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.