Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS A00-215 Exam - Topic 3 Question 55 Discussion

Actual exam question for SAS's A00-215 exam
Question #: 55
Topic #: 3
[All A00-215 Questions]

Which PROC MEANS program creates the report below?

Show Suggested Answer Hide Answer
Suggested Answer: A

The PROC MEANS statement is used to compute descriptive statistics of data in SAS. Option A is the correct code to produce the report shown in the first image because of the following reasons:

data=sashelp.shoes specifies the dataset on which the procedure is to be performed.

sum mean specifies that the summary statistics should include the sum and mean of the variables.

var Sales; specifies that the variable Sales is the analysis variable for which the summary statistics are to be computed.

class Product; specifies that the procedure should classify results by unique values of the Product variable. This will produce separate statistics for each type of product, which aligns with the structure of the report provided in the image.

Options B, C, and D are incorrect for the following reasons:

B uses group instead of class, and group is not a valid statement in the context of PROC MEANS. Also, var Sale; is incorrect as the variable name is Sales.

C includes nobe; which is not a valid SAS option and seems to be a typo. The by statement is used for sorting data, not for classifying groups as class does.

D incorrectly uses sum Salad; and mean Sales; as separate statements and has an invalid use of by product; which is not needed here.


SAS 9.4 documentation for the PROC MEANS statement: SAS Help Center: PROC MEANS

Contribute your Thoughts:

0/2000 characters
Jamika
1 day ago
Option A looks correct, sums and means are included.
upvoted 0 times
...
Broderick
7 days ago
I think the BY statement is important for this report, but I’m confused about whether it should be "by sales" or "by product" in the options.
upvoted 0 times
...
Katina
12 days ago
I feel like option A looks the most familiar, especially with the SUM and MEAN functions, but I need to double-check the syntax.
upvoted 0 times
...
Reita
17 days ago
I remember practicing a similar question where we had to use the VAR statement, but I can't recall if it was "Sales" or "Sale."
upvoted 0 times
...
Caitlin
22 days ago
I think the PROC MEANS statement should include a CLASS statement for grouping by Product, but I'm not sure which option has it correctly.
upvoted 0 times
...
Shawnda
27 days ago
I practiced a question with "sum" and "mean" before, but I can't remember if "Sales" or "Sale" was the right variable name.
upvoted 0 times
...
Mari
1 month ago
I recall that "by" and "class" are used differently in PROC MEANS. I need to double-check which one is correct for grouping.
upvoted 0 times
...
Alecia
1 month ago
I’m not sure about the options, but I feel like the one with "class Product" sounds familiar.
upvoted 0 times
...
Jutta
1 month ago
I think the PROC MEANS syntax is tricky, especially with the class and var statements. I remember practicing something similar.
upvoted 0 times
...

Save Cancel