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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

438 DATE<br />

Example 7<br />

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

CYCLE_ OBS_ DATE_<br />

1 9 1 9<br />

1 10 1 10<br />

1 11 1 11<br />

1 12 1 12<br />

1 13 1 13<br />

1 14 1 14<br />

1 15 1 15<br />

1 16 1 16<br />

1 17 1 17<br />

2 1 2 1<br />

2 2 2 2<br />

...<br />

28 15 28 15<br />

28 16 28 16<br />

28 17 28 17<br />

29 1 29 1<br />

29 2 29 2<br />

29 3 29 3<br />

29 4 29 4<br />

29 5 29 5<br />

29 6 29 6<br />

DATE W H 1 168<br />

• This example creates three variables (DATE_, WEEK_, and HOUR_) in a file where observations<br />

occur hourly.<br />

• Since the DAY keyword is not specified, a periodicity must be specified for HOUR. The<br />

value 168 indicates that there are 168 hours in a week.<br />

• The starting value of HOUR is specified as 1.<br />

DATE reports the following:<br />

Name Label<br />

WEEK_ WEEK, not periodic<br />

HOUR_ HOUR, period 168<br />

DATE_ DATE. FORMAT: "WWWW HHH"

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

Saved successfully!

Ooh no, something went wrong!