Chapter Contents

Previous

Next
The STANDARD Procedure

Overview

The STANDARD procedure standardizes variables in a SAS data set to a given mean and standard deviation, and it creates a new SAS data set containing the standardized values.

Standardized Test Scores Using PROC STANDARD shows a simple standardization where the output data set contains standardized student exam scores. The statements that produce the output follow:

proc standard data=score mean=75 std=5
              out=stndtest;
run;

proc print data=stndtest;
run;

Standardized Test Scores Using PROC STANDARD
[HTML Output]  [Listing Output]

Z Scores for Each BY Group Using PROC STANDARD shows a more complex example that uses BY-group processing. PROC STANDARD computes Z scores separately for two BY groups by standardizing life-expectancy data to a mean of 0 and a standard deviation of 1. The data are 1950 and 1993 life expectancies at birth for 16 countries. The birth rates for each country, classified as stable or rapid, form the two BY groups. The statements that produce the analysis also

For an explanation of the program that produces this output, see Standardizing BY Groups and Replacing Missing Values .

Z Scores for Each BY Group Using PROC STANDARD
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.