UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

SPSS FAQ
How do I standardize variables in SPSS?

Consider the file we call smauto that contains four variables, make, mpg, weight, and price.

get file 'c:\smauto.sav'.
list.
 
MAKE               MPG   WEIGHT    PRICE

AMC Concord         22     2930     4099
AMC Pacer           17     3350     4749
AMC Spirit          22     2640     3799
Buick Century       20     3250     4816
Buick Electra       15     4080     7827

Number of cases read:  5    Number of cases listed:  5 

You can use the descriptives command with the /save subcommand to make standardized variables.  The command below makes standardized values for mpg and weight (called zmpg and zweight).   The /save subcommand tells SPSS to make and save the z-scores of the variables listed on the descriptives command. SPSS saves the new variable(s) by placing a "z" in front of the variable name.

DESCRIPTIVES  VARIABLES = mpg weight
 /SAVE.
Descriptive Statistics

N Minimum Maximum Mean Std. Deviation
MPG 5 15 22 19.20 3.114
WEIGHT 5 2640 4080 3250.00 541.618
Valid N (listwise) 5



You can confirm that the variables were standardized properly with the descriptives command.

descriptives variables = mpg weight price zmpg zweight. 
Descriptive Statistics

N Minimum Maximum Mean Std. Deviation
MPG 5 15 22 19.20 3.114
WEIGHT 5 2640 4080 3250.00 541.618
PRICE 5 3799 7827 5058.00 1606.718
Zscore(MPG) 5 -1.34854 .89903 .0000000 1.00000000
Zscore(WEIGHT) 5 -1.12626 1.53245 .0000000 1.00000000
Valid N (listwise) 5



The results above show that indeed zmpg and zweight are standardized (the mean is very close to, but not exactly 0 due to slight rounding error).


How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California