5 pts.
 from 1 to 1440 in SPSS
First: How do i create a time serie in spss from 1 to 1440 (1440 rows)? Second: if this is to be done in a time format (00:01, 00:02, 00:03........23:59) how can I do that? THX

Software/Hardware used:
ASKED: August 6, 2008  7:34 PM
UPDATED: April 13, 2012  7:53 PM

Answer Wiki:
Hi, Below code can work for you task, Input program. Loop #i = 1 to 1440. DO IF #i = 1. Compute P1 = NUMBER("00:00",TIME5). formats P1 (time5). Else IF #i>1. Compute P1 = NUMBER("00:01",TIME5) + LAG(P1). End if. End case. End Loop. End file. End input program. Exe. This creates data from 0:00 to 23:59. Also If you want 0:01 to 24:00 then change line Compute P1 = NUMBER("00:00",TIME5). to Compute P1 = NUMBER("00:01",TIME5). Let me know feedback on the same.
Last Wiki Answer Submitted:  April 13, 2012  7:52 pm  by  Sunilkoparde   15 pts.
All Answer Wiki Contributors:  Sunilkoparde   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _