| Date: | Mon, 20 Feb 2012 06:16:50 -0800 |
| Reply-To: | SPSS_Tech <rog.cupido@gmail.com> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | SPSS_Tech <rog.cupido@gmail.com> |
| Subject: | Increment |
| Content-Type: | text/plain; charset=us-ascii |
Hello Everyone
I have a multiple question with 28 answer options. I want to identify
respondents with 3 or more than 3 "yes" answers for any of the 28 options
and create a new variable. The syntax identifies the "yes" (1) but fails to
increment and identify more than 3 "yes" answers for one respondent.
I wrote the following syntax:
COMPUTE YesCount = 0.
VECTOR v1=S3Q3A.1 to S3Q3A.28.
LOOP #N = 0 to 28.
IF ((#n)=1) YesCount = + 1.
END LOOP.
EXECUTE.
Please help and thanks in advance...
--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Increment-tp5499172p5499172.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
|