# Standardization in SAS/STAT – PROC STDIZE

Expert-led Online Courses: Elevate Your Skills, Get ready for Future - Enroll Now!

In our last tutorial, we discussedÂ SAS Post Processing Procedures.Â Today, we will discuss Standardization in SAS/STAT. We will also cover the procedure used in SAS/STATÂ Standardization:Â PROC STDIZE with example & syntax.
So, let’s start withÂ Standardization in SAS/STAT.

### What is Standardization in SAS/STAT?

InÂ our dataset, we always find our variables on different scales. Through the use of standardization in SAS/STAT, our goal is to put those different variables on the same scale. The standardÂ scoreÂ also called as a z-score is an important statistic because it allows us to calculate the probability of aÂ scoreÂ occurring within our normal distribution and allows you to compare scores between different types of variables.

In statistics, if we want to standardize the variables, we calculate theÂ mean and standard deviation for a particular variable. Then, for each observed value of the variable, we subtract the mean and divide by the standard deviation.

This process also produces standard scores that tellÂ us the number of standard deviations above or below the mean of the entire data under which a specific observation falls. For example, a standardized value of 3 indicates that the observation falls 3 standard deviations above the mean.

### SAS/STAT Standardization Procedures

Following procedures used to compute standardization in SAS/STAT, of a sample data. Let us explore it.

#### a. PROC STDIZE

The STDIZE procedure in SAS/STAT is used to standardize numeric variables of our dataset where a location measure is subtracted from the original measure and is then divided with a scale measure. It encompasses all the measure standardization methods such as median, mean, standard deviation, range etc.

Like the various procedures used for finding quantiles, PROC STDIZE can also be used to find quantiles in our dataset. It has 18 standardization methods to choose from and can also perform weighted standardization.

A Syntax of PROC STDIZE-

```PROC STDIZE DATASET<options>;
VAR variablesÂ ;
By variable;```

TheÂ PROC STDIZE statement is required.

PROC STDIZE Example-

```proc stdize data=sashelp.cars method=std pstat;
Â Â  var horsepower;
Â Â  by make;
run;```

SAS/STAT Standardization – PROC STDIZE

SAS/STAT Standardization – PROC STDIZE

Read More About SAS Missing Data Analysis Procedures

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

Standardization in SAS/STAT – PROC STDIZE

The PROC STDIZE in the above example uses the mean of the sample as the location measure and the standard deviation of the sample as the scale measure for standardizing. The PSTAT option inside the method= option displays a table containing these two measures.

So, this was allÂ aboutÂ standardization in SAS/STAT Tutorial. Hope you like our explanation.

### Conclusion

As a result, we studied standardization in SAS/STAT and the procedure used in SAS/STAT Standardization:Â PROC STDIZE with syntax & example. Stay tuned for next SAS/STAT tutorial: SAS/STAT Interview Questions. Till, if you have a doubt, feel free to ask in the comment section.

We work very hard to provide you quality material
Could you take 15 seconds and share your happy experience on Google