Language Reference

STANDARD Function

STANDARD (matrix) ;

This function is supported by the IML procedure and the iml action.

The STANDARD function is part of the IMLMLIB library. The STANDARD function standardizes each column of an n times m matrix. Each column of the input matrix is standardized to have a mean of zero and unit standard deviation, as shown in the following example:

use Sashelp.Class;
read all var _NUM_ into X[colname=varNames];
close Sashelp.Class;
stdx = standard( x );
print "Standardized Data", stdx[colname=varnames];

Figure 438: Standardized Data

Standardized Data

stdx
AgeHeightWeight
0.45837961.29960210.5477176
-0.21156-1.138435-0.703713
-0.211560.5779431-0.088975
0.45837960.09033570.1086191
0.45837960.22686580.1086191
-0.881499-0.982401-0.747623
-0.881499-0.494793-0.681758
1.12831910.03182280.5477176
-0.211560.0318228-0.703713
-0.881499-0.650828-0.02311
-1.551439-2.152658-2.174693
0.45837960.3829002-0.440254
-0.881499-1.177444-1.011082
1.12831910.81199470.5257627
1.79825861.8847312.194337
-0.8814990.48042161.2283203
1.12831910.90951621.4478695
-1.551439-0.943392-0.659803
1.12831910.81199470.5257627


Last updated: July 20, 2026