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
|