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>;
FREQ variable;
ID variable(s);
OUTPUT <OUT=SAS-data-set>
statistic-keyword-1=name(s)
<... statistic-keyword-n=name(s)>
<percentiles-specification>;
VAR variable(s);
WEIGHT variable;

To do this Use this statement
Calculate separate statistics for each BY group BY
Specify a variable that contains the frequency of each observation FREQ
Specify one or more variables whose values identify the extreme observations ID
Create an output data set that contains specified statistics OUTPUT
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.