Examples (PREDICT command)
Specifying the Forecast Period as a Date Range
PREDICT Y 61 THRU Y 65.
- This command specifies a forecast period from 1961 to 1965.
- The active dataset must include variable YEAR_, which, in this example, contains only the last two digits of each year.
- If variable MONTH_ also exists, the above command is equivalent to
PREDICT Y 61 M 1 THRU Y 65 M 12.
PREDICT W 28 THRU W 56. - This command specifies a forecast period from the 28th week to the 56th week.
- The active dataset must include variable WEEK_.
- If variable DAY_ also exists, the above command is equivalent to
PREDICT W 28 D 1 THRU W 56 D 7.
Specifying the Forecast Period as a Case Range
PREDICT 61 THRU 65.
- This command specifies a forecast period from the 61st case (observation) to the 65th case.
Using the Default Start Date
PREDICT THRU Y 65.
- This command uses the default start date, which is the observation immediately following the end of the use period. If USE is not specified, the default start is the observation immediately following the end of the series.
- The forecast period extends from the start date through year 1965.
- The active dataset must include variable YEAR_.
- Keyword THRU is required.
Specifying the Forecast Period by Using Date Variables
PREDICT THRU CYCLE 4 OBS 17.
- This example uses the date variables OBS_ and CYCLE_, which must exist in the active dataset.
- CYCLE, the highest order, must be included on PREDICT.
- Keyword THRU is required.
- The forecast period extends from the default start to the 17th observation of cycle 4.