Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4

Overview: TIMEPLOT Procedure

The TIMEPLOT procedure plots one or more variables over time intervals. A listing of variable values accompanies the plot. Although the plot and the listing are similar to those produced by the PLOT and PRINT procedures, PROC TIMEPLOT output has these distinctive features:

Output 50.1 illustrates a simple report that you can produce with PROC TIMEPLOT. This report shows sales of refrigerators for two sales representatives during the first six weeks of the year. The statements that produce the output follow. A DATA stepExample 1 on page 1313 creates the data set SALES.

options linesize=64 pagesize=60 nodate pageno=1; proc timeplot data=sales; plot icebox; id month week; title 'Weekly Sales of Refrigerators'; title2 'for the'; title3 'First Six Weeks of the Year'; run;

Output 50.1: Simple Report Created with PROC TIMEPLOT

Weekly Sales of Refrigerators 1 for the First Six Weeks of the Year Month Week Icebox min max 2520.04 3550.43 *-------------------------------* 1 1 3450.94 I 1 1 2520.04 I 1 2 3240.67 I 1 2 2675.42 I 1 3 3160.45 I 1 3 2805.35 I 1 4 3400.24 I 1 4 2870.61 I 2 1 3550.43 I 2 1 2730.09 I 2 2 3385.74 I 2 2 2670.93 I *-------------------------------*

 

Output 50.2 is a more complicated report of the same data set that is used to create Output 50.1. The statements that create this report

Output 50.2: More Complex Report Created with PROC TIMEPLOT

Weekly Appliance Sales for the First Quarter 1 Seller :Kreitz Seller :LeGrange Month Week Stove Stove min max 4.24 ,910.37 *-------------------------* January 1 ,312.61 8.13 L K January 2 2.35 4.24 ! January 3 ,263.33 7.35 L K January 4 ,787.45 4.51 L K February 1 ,910.37 7.98 L K February 2 9.69 ,242.24 K L *-------------------------* Weekly Appliance Sales for the First Quarter 2 Kreitz LeGrange Month Week Icebox Icebox min max ,520.04 ,550.43 *-------------------------* January 1 ,450.94 ,520.04 L K January 2 ,240.67 ,675.42 L K January 3 ,160.45 ,805.35 L K January 4 ,400.24 ,870.61 L K February 1 ,550.43 ,730.09 L K February 2 ,385.74 ,670.93 L K *-------------------------*

 

For an explanation of the program that produces this report, see Example 5 on page 1322.

Категории