HOME Module List Site Index About This Site glossary" Resources Innovative Technology Center UT Statistics Courses
Using SAS Choose Design ANOVA Compare Means Regression Examples
Using SAS Using SAS: Table of Contents

Basic procedures
PROC Univariate

The UNIVARIATE procedure calculates summary statistics and information about the distribution of variables. It is most frequently used to test for the normal distribution.
PROC UNIVARIATE DATA=one PLOT NORMAL;
VAR weight;
RUN;
will produce stem-leaf, box, and normal probability plots, along with several statistical tests for goodness-of-fit to the normal distribution.
    example

To test normality for each treatment, use
PROC SORT DATA=one; BY treatment;
PROC UNIVARIATE data=one PLOT NORMAL; BY treatment;
VAR weight;
RUN;

    example

As with many SAS procedures, results can be written to a dataset, such as
PROC UNIVARIATE DATA=one PLOT NORMAL;
VAR weight;
OUTPUT OUT=mmm MEAN=mweight;
RUN;
This creates a new dataset MMM with the variable mweight containing means for the weight variable.
    example

 

Related Topics:                                                                                                     Using SAS: Table of Contents
PROC Print
PROC Sort
PROC Means
PROC Univariate

Home | Contact us | Module list & summary | Glossary/Terms | About this site | Stats courses | Links | Index