Example 2 (DATE command)
DATE WEEK DAY 1 5 HOUR 1 8.
- This command creates four variables (DATE_, WEEK_, DAY_, and HOUR_) in a file where observations occur hourly in a 5-day, 40-hour week.
- For WEEK, the default starting value is 1 and the default periodicity is none.
- For DAY_, the starting value has to be specified, even though it is the same as the default, because a periodicity is specified. The periodicity of 5 means that observations are measured in a 5-day week.
- For HOUR_, a starting value of 1 is specified. The periodicity of 8 means that observations occur in an 8-hour day.
DATE
reports
the following:
Name Label
WEEK_ WEEK, not periodic
DAY_ DAY, period 5
HOUR_ HOUR, period 24
DATE_ DATE. FORMAT: "WWW D HH"
The following is a partial listing of the new variables:
WEEK_ DAY_ HOUR_ DATE_
1 1 1 1 1 1
1 1 2 1 1 2
1 1 3 1 1 3
1 1 4 1 1 4
1 1 5 1 1 5
...
1 1 22 1 1 22
1 1 23 1 1 23
1 2 0 1 2 0
1 2 1 1 2 1
1 2 2 1 2 2
...
4 5 16 4 5 16
4 5 17 4 5 17
4 5 18 4 5 18