54.PROC MEANS | RANGE OPTION

                                        PROC MEANS | RANGE OPTION
 

RANGE OPTION:IT WILL GIVE RANGE OF THE VALUES..

EG1: HERE WE PERFORMED ONLY ONE CLASS STATEMENT..

PROC MEANS DATA=PROG1.SALES RANGE;

 VAR SALARY;

 CLASS GENDER ;

 OUTPUT OUT=WORK.MEAN1;

RUN;


LOG:


NOTE: Writing HTML Body file: sashtml.htm

NOTE: There were 165 observations read from the data set PROG1.SALES.

NOTE: The data set WORK.MEAN1 has 15 observations and 5 variables.

NOTE: PROCEDURE MEANS used (Total process time):

      real time           3.60 seconds

      cpu time            0.31 seconds


RESULT:

    The SAS System

The MEANS Procedure

Analysis Variable : Salary
Gender N Obs Range
F 68 58320.00
M 97 220480.00


EG2: HERE WE PERFORMED TWO VARIABLES IN CLASS STATEMENT..

PROC MEANS DATA=PROG1.SALES RANGE;

 VAR SALARY;

 CLASS GENDER COUNTRY;

 OUTPUT OUT=WORK.MEAN1;

RUN;


LOG:

NOTE: There were 165 observations read from the data set PROG1.SALES.
NOTE: The data set WORK.MEAN1 has 65 observations and 6 variables.
NOTE: PROCEDURE MEANS used (Total process time):
      real time           0.07 seconds
      cpu time            0.04 seconds


RESULT:

        The SAS System

     The MEANS Procedure

Analysis Variable : Salary
Gender Country N Obs Range
F AU 23 5705.00
  IN 4 1270.00
  UK 5 3320.00
  US 36 58115.00
M AU 36 82510.00
  US 61 220480.00



-->PLEASE READ AND COMMENT THE BLOG...

--PLEASE FOLLOW THE BLOG FOR MORE UPDATES...

--FOLLOW US IN FACEBOOK SASALL4YOU AND JOIN ...

--JOIN US IN FACEBOOK AND TELEGRAM  CHANNEL FOR MORE UPDATES

   CLICK HERE: https://t.me/SasAll4You

 

Comments