Report Writing |
A frequency report summarizes data by showing how it falls into different categories. By following the instructions in this section, you can produce a crosstabulation frequency report that shows how many, and what percentage, of each style of house has one, two, three, and four bedrooms.
Style of Houses vs. Number of Bedrooms Frequency Report
Setting Up the Report |
To produce a frequency report like the one shown in the previous display, follow this selection path:Tasks Report Writing CountsThe Select a Style of Report window appears.
Select a Style of Report Window
Select . The Two-Way Crosstabulation window appears.
Two-Way Crosstabulation Window
If the active table is SASUSER.HOUSES, then continue to the next step. Otherwise, select , and then select the SASUSER.HOUSES table. For more information on selecting tables, see Selecting a Table.
If there is an active Subset Data selection (indicated with BY, WHERE, or ROWS next to ), then clear the selection. For more information, see Clearing a Subset Data Selection.
If other report selections exist (for example, column names exist for or ), then selectFile Newto clear these selections.
Select from the Two-Way Crosstabulation window, and then select the STYLE column. For more information, see Selecting a Column.
Adding Titles |
You can customize the report by adding titles and footnotes, changing the page dimensions, and selecting headings. Refer to Adding Titles for instructions on adding titles to the report. Add the title Style of House vs. Number of Bedrooms Frequency Report as Title 1 to this report.
Running the Report |
After you have finished setting up the report, run the report.
Follow this selection path:Run SubmitThe report appears in the Output window.
Style of House vs. Number of Bedrooms Frequency Report
This report shows the frequency of one, two, three, and four bedroom houses in each style.
If the report is wider or longer than the window, then use the scroll bars or the FORWARD, BACKWARD, LEFT, and RIGHT function keys to look at the report.
Printing the Report |
If you do not want to print the report, then go to the next section. To print the report, follow the directions in Printing the Report.
Exiting This Task |
When you have finished viewing or printing your report, return to the Two-Way Crosstabulation window by using one of the following methods, depending on your operating environment:
To return to the WorkPlace menu or move on to another task, follow the directions in Exiting a Task.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.