Time series data can be recorded in many different ways. The section Reading Time Series Data discusses some of the possibilities. The example below shows a simple case.
The following SAS statements read monthly values of the U.S. Consumer Price Index for June 1990 through July 1991. The data set USCPI is shown in FigureĀ 3.1.
data uscpi; input year month cpi; datalines; 1990 6 129.9 1990 7 130.4 1990 8 131.6 ... more lines ...
proc print data=uscpi; run;
When a time series is stored in the manner shown by this example, the terms series and variable can be used interchangeably. There is one observation per row and one series/variable per column.