Customize the appearance of the report produced in the related technique of Example 3.2 by modifying style attributes with ODS. Use “traffic lighting” to draw attention to specific results in the report by setting style elements to specific colors. Send the output to a nonlisting destination.
Data Set | BREAD |
Report Example | Example 3.2 Related Technique |
Featured Steps | PROC FORMAT PROC TABULATE |
Featured Step Statements and Options | PROC FORMAT
ODS STYLE= options placed on these PROC TABULATE statements:
|
Output Destination of Example | RTF |
Other Examples That Use This Data Set | Examples 3.2 and 6.15 |
The report in the Related Technique section of Example 3.2 shows descriptive statistics for several combinations of classifications in the BREAD data set. This example presents only the table produced by the last request in the TABLE statement. The last table request computes descriptive statistics on calories and dietary fiber for the categories defined by the combination of the values of SOURCE and BRAND.
The report in this example visually identifies the means above and below specific values by setting the background color of the cell. Formats created by PROC FORMAT associate ranges of values to colors. A format is defined for ranges of calorie values, and a format is defined for ranges of dietary fiber values. The program applies each format to the mean statistic of the specific analysis variable by setting the background style element attribute to the format name.
3.144.9.164