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 (May 2004)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 6 May 2004 23:01:50 +0000
Reply-To:     Valentim Rodrigues Alferes <alferes@CI.UC.PT>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Valentim Rodrigues Alferes <alferes@CI.UC.PT>
Subject:      Re: Highest 3 numbers in a list...
Content-Type: text/plain; charset=iso-8859-1

Hi,

The following syntax does the job:

COMPUTE varmax = MAX(v1 to v15). EXECUTE. SORT CASES BY varmax(D). TEMPORARY. SEL IF $CASENUM<4. DESCRIPTIVES VARIABLES=varmax/STATISTICS=MEAN.

Valentim Alferes University of Coimbra

http://www.fpce.uc.pt/nucleos/niips/spss_prc/index.htm

Hi,

Does anyone have an easy way to get the highest 3 numbers from a list of up to 15? So there is a list of numeric variables v1,v2,v3,...,v15 and I want to grab the highest 3 numbers and average them. Thanks, rich


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