Date: Wed, 14 Dec 2011 09:43:36 -0800
Reply-To: Rob360 <haarenvanrob@GMAIL.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Rob360 <haarenvanrob@GMAIL.COM>
Subject: Please help! REPEAT question
Content-Type: text/plain; charset=us-ascii
Dear all,
I'm new to the SPSS syntax, but have some MATLAB experience.
Very stuck with the following:
I'd like to create 1440 new variables: bin0001 to bin1440
each variable will take the value '1' depending on whether its number is
between the variables 'STRTTIME' and 'ENDTIME', which are already in the
dataset.
I've come this far (example for bin 1343, which works!), but you've guessed
it, I am not planning to type in the same code 1440 times....
DATASET ACTIVATE DataSet1.
IF (1343 > STRTTIME & 1343 <= ENDTIME) bin1343=1.
EXECUTE.
Can somebody help me?
Thanks in advance,
Rob
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Please-help-REPEAT-question-tp5075181p5075181.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD