Stata Help

Calculate Z-Scores in Stata

Often it can be useful to transform your raw scores into Z-scores. Since this is a common need, someone has already done the coding for you; however, you may still need to install it. If you are working on a Reed-managed lab machine, it should already be there.

To download the package you want, type findit zscore. This launches the Help Viewer and brings up all the help for which the search term "zscore" is relevant. 

If you scroll down to the bottom, you'll see a section called Web resources from Stata and other Users. Below this will be the information for a package called "zscore" with a blue link (not zscore06). Clicking the blue link will take you to a page with more detailed information about the command and a link that says (click here to install). Click this link to download the zscore package. Once the package is downloaded, you can type help zscore into the Command window on Stata to learn how to use it.

Typing zscore [variablename] into the Command window will cause Stata to transform the raw numerical data into distance from the mean scores (or Z-scores). These computed scores will add themselves as a new column in your data set.

Back to Tutorials