The UNIVARIATE Procedure

 

Overview: UNIVARIATE Procedure

The UNIVARIATE procedure provides the following:

  • descriptive statistics based on moments (including skewness and kurtosis), quantiles or percentiles (such as the median), frequency tables, and extreme values

  • histograms that optionally can be fitted with probability density curves for various distributions and with kernel density estimates

  • cumulative distribution function plots (cdf plots). Optionally, these can be superimposed with probability distribution curves for various distributions.

  • quantile-quantile plots (Q-Q plots), probability plots, and probability-probability plots (P-P plots). These plots facilitate the comparison of a data distribution with various theoretical distributions.

  • goodness-of-fit tests for a variety of distributions including the normal

  • the ability to inset summary statistics on plots

  • the ability to analyze data sets with a frequency variable

  • the ability to create output data sets containing summary statistics, histogram intervals, and parameters of fitted curves

You can use the PROC UNIVARIATE statement, together with the VAR statement, to compute summary statistics. See the section Getting Started: UNIVARIATE Procedure for introductory examples. In addition, you can use the following statements to request plots:

  • the CDFPLOT statement for creating cdf plots

  • the HISTOGRAM statement for creating histograms

  • the PPPLOT statement for creating P-P plots

  • the PROBPLOT statement for creating probability plots

  • the QQPLOT statement for creating Q-Q plots

  • the CLASS statement together with any of these plot statements for creating comparative plots

  • the INSET statement with any of the plot statements for enhancing the plot with an inset table of summary statistics

The UNIVARIATE procedure produces two kinds of graphical output:

  • ODS Statistical Graphics output, which is produced when ODS Graphics is enabled prior to your procedure statements

  • traditional graphics, which are produced when ODS Graphics is not enabled

See the section Creating High-Resolution Graphics for more information about producing traditional graphics and ODS Graphics output.