DATE
Creates date variables (YEAR_, QUARTER_, MONTH_, DATE_ …) for a time series and sets its periodicity.
Syntax
Section titled “Syntax”DATE YEAR start [QUARTER start] [MONTH start] | WEEK start DAY start [days] | CYCLE start OBS start period | NONE.Synopsis
Section titled “Synopsis”| Kind | Data management |
| Body | free-form body |
| Changes data | yes, undoable |
Examples
Section titled “Examples”DATE YEAR 2001 MONTH 1.DATE YEAR 1990 QUARTER 3.DATE CYCLE 1 OBS 1 24.DATE NONE.- Cases are taken as consecutive periods in file order; the first case gets the start values.
- The periodicity (12 for months, 4 for quarters, 7 for days of the week, or the CYCLE length) is the default seasonal period of TSMODEL, SEASON, ACF and PACF. DATE NONE forgets it and keeps the variables.
- DEFINE DATES is accepted as a synonym (the macro preprocessor leaves it alone).
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.