SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Computing Statistics for Numeric Variables
Group Processing


Question: Which program will generate a set of statistics grouped by the variable Region?

 
proc sort data=parts.widgets out=work.widgsort;
   by region;
run;
proc means data=work.widgsort mean range sum maxdec=0;
   var unitcost unitsold net;
   by region;
run;
 
proc means data=parts.widgets mean range sum maxdec=0;
   var unitcost unitsold net;
   class region;
run;
  neither program
 
  both programs




  back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement