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 (June 2001)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: cecarroll@MAIL.UTEXAS.EDU

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


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