Chapter Contents

Previous

Next
The UNIVARIATE Procedure

Example 6: Creating an Output Data Set with Multiple Analysis Variables


Procedure features:
PROC UNIVARIATE statement option:
NOPRINT
OUTPUT statement
VAR statement
Other features:
PRINT procedure
Data set: SCORE

This example


Program

options nodate pageno=1 linesize=80 pagesize=60;
 Note about code
proc univariate data=score noprint;
 Note about code
   var test1 test2;
 Note about code
   output out=teststat mean=MeanTest1 MeanTest2 
          std=StdDeviationTest1
          pctlpts=33.3 66 99.9
          pctlpre=Test1_ 
          Test2_ pctlname=Low ;
run;
 Note about code
proc print data=teststat noobs;
   title1 'Univariate Statistics for Two College Tests';
   title2 'Output Data Set from PROC UNIVARIATE';
run;


Output
The TESTSTAT data set contains one observation with the mean for the two analysis variables and the standard deviation for the first analysis variable. The remaining six variables contain computed percentiles. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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