27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DATE 435<br />

• For DAY_, the starting value has to be specified, even though it is the same as the default,<br />

because a periodicity is specified. The periodicity of 5 means that observations are<br />

measured in a 5-day week.<br />

• For HOUR_, a starting value of 1 is specified. The periodicity of 8 means that observations<br />

occur in an 8-hour day.<br />

Example 3<br />

DATE reports the following:<br />

Name Label<br />

WEEK_ WEEK, not periodic<br />

DAY_ DAY, period 5<br />

HOUR_ HOUR, period 24<br />

DATE_ DATE. FORMAT: "WWW D HH"<br />

The following is a partial listing of the new variables:<br />

WEEK_ DAY_ HOUR_ DATE_<br />

1 1 1 1 1 1<br />

1 1 2 1 1 2<br />

1 1 3 1 1 3<br />

1 1 4 1 1 4<br />

1 1 5 1 1 5<br />

...<br />

1 1 22 1 1 22<br />

1 1 23 1 1 23<br />

1 2 0 1 2 0<br />

1 2 1 1 2 1<br />

1 2 2 1 2 2<br />

...<br />

4 5 16 4 5 16<br />

4 5 17 4 5 17<br />

4 5 18 4 5 18<br />

DATE DAY 1 5 HOUR 3 8.<br />

• This command creates four variables (DATE_, CYCLE_, DAY_, and HOUR_) in a file where<br />

observations occur hourly.<br />

• For HOUR_, the starting value is 3 and the periodicity is 8.<br />

• For DAY_, the starting value is 1 and the periodicity is 5. Since DAY_ is the highest-order<br />

variable and it has a periodicity assigned, variable CYCLE_ is automatically created.<br />

DATE reports the following:<br />

Name Label<br />

CYCLE_ CYCLE, not periodic<br />

DAY_ DAY, period 5<br />

HOUR_ HOUR, period 8<br />

DATE_ DATE. FORMAT: "CCCC D H"

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!