Chapter Contents

Previous

Next
The UNIVARIATE Procedure

Procedure Syntax


Tip: Supports the Output Delivery System. See Output Delivery System
Reminder: You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements as well. See Global Statements for a list.

PROC UNIVARIATE <option(s)>;
BY <DESCENDING> variable-1 <...<DESCENDING> variable-n>
<NOTSORTED>;
CLASS variable-1<(variable-option(s))> <variable-2<(variable-option(s))>>
</ KEYLEVEL='value1'|('value1' 'value2')>;
FREQ variable;
HISTOGRAM <variable(s)> </ option(s)>;
ID variable(s);
INSET <keyword(s) DATA=SAS-data-set> </ option(s)>;
OUTPUT <OUT=SAS-data-set> statistic-keyword-1=name(s)
<... statistic-keyword-n=name(s)> <percentiles-specification>;
PROBPLOT <variable(s)> </ option(s)>;
QQPLOT <variable(s)> </ option(s)>;
VAR variable(s);
WEIGHT variable;

To do this Use this statement
Calculate separate statistics for each BY group BY
Specify up to two class variables to categorize the analysis CLASS
Specify a variable that contains the frequency of each observation FREQ
Create a high-resolution graph of a histogram HISTOGRAM
Specify one or more variables whose values identify the extreme observations ID
Inset a table of summary statistics in a high-resolution graph INSET
Create an output data set that contains specified statistics OUTPUT
Create a high-resolution graph of a probability plot PROBPLOT
Create a high-resolution graph of a quantile-quantile plot QQPLOT
Select the analysis variables and determine their order in the report VAR
Identify a variable whose values weight each observation in the statistical calculations WEIGHT


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.