Overview (REPORT command)
REPORT produces
case listings and summary statistics and gives you considerable control
over the appearance of the output. REPORT calculates all the univariate statistics available in DESCRIPTIVES and the statistics and subpopulation
means available in MEANS. In
addition, REPORT calculates statistics
not directly available in any other procedure, such as computations
involving aggregated statistics.
REPORT provides
complete report format defaults but also lets you customize a variety
of table elements, including column widths, titles, footnotes, and
spacing. Because REPORT is so
flexible and the output has so many components, it is often efficient
to preview report output using a small number of cases until you find
the format that best suits your needs.
Basic specification
The basic
specification depends on whether you want a listing report or a summary
report. A listing report without subgroup classification requires FORMAT and VARIABLES. A listing report with subgroup classification requires FORMAT, VARIABLES, and BREAK. A summary report
requires VARIABLES, BREAK, and SUMMARY.
Listing
reports. FORMAT=LIST and VARIABLES with a variable
list are required. Case listings are displayed for each variable named
on VARIABLES. There are no break
groups or summary statistics unless BREAK or SUMMARY is specified.
Summary reports. VARIABLES, BREAK, and SUMMARY are required. The report is organized according to the values of
the variable named on BREAK.
The variable named on BREAK must
be named on a preceding SORT CASES command. Specified statistics are computed for the variables specified
on VARIABLES for each subgroup
defined by the break variables.
Subcommand order
The following order must be observed among subcommands when they are used:
-
FORMATmust precede all other subcommands. -
VARIABLESmust precedeBREAK. -
OUTFILEmust precedeBREAK. - Each
SUMMARYsubcommand must immediately follow its associatedBREAK. MultipleSUMMARYsubcommands associated with the sameBREAKmust be specified consecutively. -
TITLEandFOOTNOTEcan appear anywhere afterFORMATexcept betweenBREAKandSUMMARY. -
MISSINGmust followVARIABLESand precede the firstBREAK. -
STRINGmust precedeVARIABLES.
Syntax rules
- Only one each
of the
FORMAT,STRING,VARIABLES, andMISSINGsubcommands is allowed. - To obtain multiple break groups, use
multiple
BREAKsubcommands. - To obtain multiple summaries for a break level,
specify multiple
SUMMARYsubcommands for the associatedBREAK. - Keywords on
REPORTsubcommands have default specifications that are in effect if the keyword is not specified. Specify keywords only when you wish to change a default. - Keywords are enclosed in parentheses if the subcommand takes variable names as arguments.
Operations
-
REPORTprocesses cases sequentially. When the value of a break variable changes,REPORTdisplays a statistical summary for cases processed since the last set of summary statistics was displayed. Thus, the file must be sorted in order on the break variable or variables. - The maximum width and page length of the report are determined by
the
SETcommand. - If a column is not wide enough to display numeric values,
REPORTfirst rounds decimal digits, then converts to scientific notation if possible, and then displays asterisks. String variables that are wider than the column are truncated. - The format used to display values in case listings
is controlled by the dictionary format of the variable. Each statistical
function in
REPORThas a default format.
Limitations
- Maximum 500
variables per
VARIABLESsubcommand. You can specify more than 500 variables if you stack them. See the topic VARIABLES subcommand (REPORT command) for more information. - Maximum 10 dummy variables per
VARIABLESsubcommand. - Maximum 20
MODEandMEDIANrequests perSUMMARYsubcommand. - Maximum 20
PGT,PLT, andPINrequests perSUMMARYsubcommand. - Maximum 50 strings per
STRINGsubcommand. - The length of titles and footnotes cannot exceed the report width.
- The length of string variables created on
STRINGcannot exceed the page width. - There is no fixed limit on the number of
BREAKandSUMMARYsubcommands. However, the page width limits the number of variables that can be displayed and thereby limits the number of break variables. - The maximum width of a report is 255 characters.
- The number of report variables that can be specified
depends upon the width of the report, the width of the variable columns,
and the number of
BREAKsubcommands. - Maximum 50 variables for the
FREQUENCYorPERCENTfunctions. - Memory requirements significantly
increase if
FREQUENCY,PERCENT,MEDIAN, orMODEis requested for variables with a wide range of values. The amount of workspace required is 20 + 8*(max − min + 1) bytes per variable per function per break. If the same range is used for different statistics for the same variable, only one set of cells is collected. For example,FREQUENCY(1,100)(VARA) PERCENT(1,100)(VARA)requires only 820 bytes. - If
TOTALis in effect, workspace requirements are almost doubled. - Memory requirements also increase if value labels are displayed for variables with many value labels. The amount of workspace required is 4 + 24*n bytes per variable, where n is the number of value labels specified for the variable.