Multiple choice technology programming languages

How to obtain only the MEAN and SUM of TOTREV classified by REGION in the ORGANIZATION data set.

  1. PROC MEANS DATA= ORGANIZATION ; CLASS REGION; VAR TOTREV ; run;

  2. PROC MEANS DATA= ORGANIZATION SUM MEAN MAXDEC=0 ; CLASS REGION; VAR TOTREV ; run;

  3. PROC MEANS DATA= ORGANIZATION SUM MEAN MAXDEC=0 ; BY REGION; CLASS TOTREV ; run;

  4. PROC MEANS DATA= ORGANIZATION SUM MEAN MAXDEC=0 ; CLASS North_Region; VAR TOTREV ; run;

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Specifying the SUM and MEAN statistic options in the PROC MEANS statement limits the output to only those metrics. The CLASS REGION; statement groups the analysis by region, and VAR TOTREV; specifies the analysis variable. The correct option properly formats these statements.