Date: Wed, 6 Jun 2001 06:12:36 CDT
Reply-To: Jeffrey Berman <jberman@MEMPHIS.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jeffrey Berman <jberman@MEMPHIS.EDU>
Subject: Re: Computing Mean-Centered Values w/Syntax
On Tue, 5 Jun 2001, Craig E Carroll <cecarroll@MAIL.UTEXAS.EDU> wrote:
> Does anyone know how to create mean-centered values for variables using
> syntax?
Craig:
Here is SPSS syntax for creating a mean-centered transformation of a variable:
COMPUTE DUMMY=1.
AGGREGATE OUTFILE='mean.tmp'
/BREAK=DUMMY
/MEANVAR=MEAN(ORIGVAR).
MATCH FILES FILE=*
/TABLE='mean.tmp'
/BY DUMMY.
COMPUTE CENTVAR=ORIGVAR-MEANVAR.
DUMMY is a variable that will the same value (1) for all cases, MEANVAR is a
variable that has the mean of the ORIGVAR variable for all cases, and
CENTVAR is the mean-centered transformation.
-Jeffrey Berman
University of Memphis