=========================================================================
Date: Fri, 28 Jul 2006 18:17:36 +0100
Reply-To: Michael Pearmain <Michael.Pearmain@tangozebra.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Michael Pearmain <Michael.Pearmain@tangozebra.com>
Subject: Re: Maximum value of a variable move into a new variable
Content-Type: text/plain; charset="us-ascii"
Hi Siraj
You can use the aggregate command
COMPUTE dummy = 1 .
EXECUTE .
AGGREGATE
/OUTFILE=*
MODE=ADDVARIABLES
/BREAK=dummy
/XYZ = MAX(abc).
Mike
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Siraj Ur-rehman
Sent: 28 July 2006 17:55
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Maximum value of a variable move into a new variable
Hi Guys
I want to calculate a new variable (XYZ) based on the maximum value of
(ABC). e.g. if ABC has the maximum value 250 then XYZ has 250 for all
observations. Thanks and have a nice weekend.
Siraj
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email