'Life is after all a recursive summation, indeed     Let's do some Statistics!

Department of Civil and Environmental Engineering
Frank Batten College of Engineering and Technology
Old Dominion University
Norfolk, Virginia 23529-0241, USA
Tel) (757) 683-3753
Fax) (757) 683-5354


	
Return to CEE 700/800 Homepage
CEE 700/800 Access Counter
 
Go back to
SAS Source Page
Normal Standardization
SAS Source: STANDARD.SAS

Description

A Normal Standardization example. Standardization (or more commonly referred to as "normalization") is a technique for removing location and scale attributes from a set of data. Normal Standardization is a particular standardization technique to center the values on a variable to a mean of 0 and a standard deviation of 1. By normalizing different sample groups, you can compare 'apple' to 'apple,' not 'apple' to 'orange.'

STANDARD procedure can be used to standardizes some or all of the variables in the data set to a given mean and standard deviation and generate a new data set containing standardized values.

SAS Listing


OPTIONS LINESIZE=70;
TITLE 'Standardization example';
DATA A;
INPUT STUDENT SECTION TEST1-TEST3;
   STEST1=TEST1;
   STEST2=TEST2;
   STEST3=TEST3;
   CARDS;
238900545  1  94  91  87
254701167  1  95  96  97
238806445  2  91  86  94
999002527  2  80  76  78
263924680  1  92  40  85
459700886  2  75  76  80
416724915  2  66  69  72
999001230  1  82  84  80
242760674  1  75  76  70
990001252  2  51  66  91
;
RUN;

PROC SORT;
   BY SECTION;
RUN;

/* Standardize with mean of 80 points and std.   */
/* dev. of 5 points                              */

PROC STANDARD MEAN=80 STD=5 OUT=NEW;
   BY SECTION;
   VAR STEST1-STEST3;
RUN;

PROC PRINT DATA=NEW;
   BY SECTION;
   TITLE 'STANDARDIZED TEST SCORES';
RUN;

PROC MEANS DATA=NEW(DROP=STUDENT) MAXDEC=2 N MEAN STD;
   BY SECTION;
RUN;


SAS Listing

SAS User Guide (SUG) for Procedures (PROC) used in the Source

SUG MEANS procedure
SUG PRINT procedure
SUG SORT procedure
SUG STANDARD procedure
Go back to
SAS Source Page

Return to CEE 700/800 Homepage Return to CEE 700/800 Homepage Move to the Top of this page