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.

436 DATE<br />

Example 4<br />

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

CYCLE_ DAY_ HOUR_ DATE_<br />

1 1 3 1 1 3<br />

1 1 4 1 1 4<br />

1 1 5 1 1 5<br />

1 1 6 1 1 6<br />

1 1 7 1 1 7<br />

1 2 0 1 2 0<br />

1 2 1 1 2 1<br />

...<br />

12 4 6 12 4 6<br />

12 4 7 12 4 7<br />

12 5 0 12 5 0<br />

12 5 1 12 5 1<br />

12 5 2 12 5 2<br />

12 5 3 12 5 3<br />

12 5 4 12 5 4<br />

DATE DAY HOUR 1 24 BY 2.<br />

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

occur every two hours in a 24-hour day.<br />

• DAY_ uses the default starting value of 1. It has no periodicity, since none is specified,<br />

and it is the highest-order keyword on the command.<br />

• HOUR_ starts with a value of 1 and has a periodicity of 24.<br />

• Keyword BY specifies an increment of 2 to use in assigning hour values.<br />

DATE reports the following:<br />

Name Label<br />

DAY_ DAY, not periodic<br />

HOUR_ HOUR, period 24 by 2<br />

DATE_ DATE. FORMAT: "DDDD HH"<br />

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

DAY_ HOUR_ DATE_<br />

1 1 1 1<br />

1 3 1 3<br />

1 5 1 5<br />

...<br />

39 17 39 17<br />

39 19 39 19<br />

39 21 39 21<br />

39 23 39 23<br />

40 1 40 1<br />

40 3 40 3<br />

40 5 40 5<br />

40 7 40 7<br />

40 9 40 9<br />

40 11 40 11

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

Saved successfully!

Ooh no, something went wrong!