LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2012)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SPSSX-L page